Create a Page
- Click on the small green plus icon (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(Title, body, tags, …).
- Save it by clicking the “Save” button below the editing area.
Note that all “main pages” in Frog are actually a “child” page to the Home page.
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 found by
$this->find('its_url') - it is NOT possible to access it directly with its 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('its_url') - it is possible to access it directly with its full url
Published
constant = Page::STATUS_PUBLISHED
- it will be listed by
$this->children() - it will be found by
$this->find('its_url') - it is possible to access it directly with its 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 found by
$this->find('its_url') - it is possible to access it directly with its full url
note: it can be listed with $this->children(array(), array(), true), because you can ask children to include hidden pages (3rd param need to be set to true)
