EE2: Create Pages
- Assign a channel to the type “Page” under Structure » Channel Settings and assign it the default template you want your pages to use
- Start building your site tree through the Structure CP using the “add page” control or through the Publish tab
- When adding or editing an entry there is a Structure tab in which you can customize the page URL or assign it to a template other than the default one you assigned under settings
- No matter what template your channel is assigned to use under the settings, templates can be changed any time per page by editing the “Template” dropdown under the Structure tab when editing an entry
- Displaying your page in a template is explained here: http://buildwithstructure.com/documentation/pages/
- You can use our nav_main and nav_sub tags to link to all of your pages in various ways
- Further pages can be added by the same method and assigning parents under the Structure tab or through the “add page” link next to each page
Displaying Content
Pages are shown using basic channel tags and methods you already use building EE sites. The same rules apply, except that you can not include dynamic="off" because Structure needs this to find the current page through the URL you are accessing. Structure will match that with the appropriate entry and display it based off the URL.
{exp:channel:entries channel="your-page-channel"}
<h1>{title}</h1>
{custom-field-name}
{/exp:channel:entries}