Setting page visibility from code

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

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

1 Like

@texnixe god bless you!