Setting page visibility from code


#1

I’m pretty sure there is a way to do it, but I cannot find it!

I’m looking for a method to set the page visibility from code. Just like we can manipulate page content with the page->update() method.

thankx

Francesco


#2

That would be $page->sort($sortingnumber) for making a page visible, and $page->hide() to do the opposite.


#3

@texnixe god bless you!