Jump to content

Create a hidden page via API


Nico Knoll
 Share

Recommended Posts

Hi,

how can I select "hidden" via API?

My current code doesn't work:

$home = $this->pages->get('/');

$page = new Page();
$page->parent = $home; 
$page->template = $this->templates->get('admin');
$page->name = 'storage';
$page->hidden = 'true';
$page->title = "Storage";
$page->process = $this; 
$page->sort = $home->numChildren;
$page->save();

Greets,

Nico

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...