Create a Page
You have two options for doing this:
- Create a page by using the New Page button on the right, and then fill all the information (Title, body, tags, …), and save it by clicking the “Save” button below the editing area. Then click on the small link reorder (at the left of the header line above the list of pages), and then just drag and drop your new page where you want it.
- The second method is to click on the small green plus button (it has the tooltip “Add child” when you hover the mouse pointer over it) at the right of the “parent” page that you want your new page to be created “under”. Fill all necessary information, and save it (as above).
Page Status Definition
Draft
constant = Page::STATUS_DRAFT
This is the one to use when you write a page, but you only want to save it as a draft for more writing later.
- it will NOT be listed by $this->children()
- it will NOT be finded by $this->find(‘is_url’)
- it is NOT possible to have access to it directly with is full url
Reviewed
constant = Page::STATUS_REVIEWED
Use this when you want to add a special status to a page that has been reviewed. You need to code a special condition in the children param like array(‘where’ => ‘status_id = ‘.Page::STATUS_REVIEWED’)
In this way, you will get only reviewed pages.
- it will be listed by $this->children()
- it will be found by $this->find(‘is_url’)
- it is possible to have access to it directly with is full url
Published
constant = Page::STATUS_PUBLISHED
- it will be listed by $this->children()
- it will be finded by $this->find(‘is_url’)
- it is possible to have access to it directly with is full url
Hidden
constant = Page::STATUS_HIDDEN
Use this status when you have written a page that you do not want in your site’s navigation (e.g., RSS, Sitemap, etc.). This status is also useful for previewing your page before setting its status to Published.
- it will NOT be listed by $this->children()
- it will be finded by $this->find(‘is_url’)
- it is possible to have access to it directly with is full url
note: it can be listed with $this->children(array(), array(), true), because you can ask children to include hidden pages (3th param need to be set to true)
