Page System

Video: Creating Pages

Pages are instances of Page Templates, which means pages share common properties between each other such as the Template HTML, Layout, and Property Definitions. Page Templates have constraints which control how instances of pages can be created within the content structures. E.g:

A CMS has two Page Templates, ArticleCategory and Article, the ArticleCategory Page Template contains a constraint which allows a minimum of 1 Article, and a Maximum of 5 Articles, the following page sturcture can then be created:
  • New Articles (ArticleCategory)
    • News Article 1 (Article)
    • News Article 2 (Article)
    • etc...

Creating A Root Page

Once you have logged into the CMS you can go to the Content tab and this shows the Content Explorer on the left. There are some sub-folders that categories the sort of things you can create and manage from this interface. To create a new page, you need to highlight the Pages folder and click the Create Root Page button on the Content Explorer Toolbar

This opens up a new dialog box to enter information about the root page. The following fields need to be completed:
  • Existing Template - Choose to create a page from an existing template, or use New Template to create a new template along with the new page
  • New Template - This will be available to populate if you are creating a new template. This is the name of the new template
  • Parent Template - If you want to use a master template, or a parent template then you can select which one should be its parent from this drop down

Click Next and enter the name of your new page, then click Finish

If you expand Pages and Page Templates in the Content Explorer you will see your new page and template have been created. Double clicking on either will open the editor tabs in the main view.

Creating Child Pages

Child pages are given URL's based on the location in the content structrue (e.g a page created under the root page would have the url \RootPage\NewPage). Highlight the page you want to use as the parent page and click the Create Page toolbar button. This will take you through the same process as above, except with two new fields:
  • Minimum Required - This field is how many times the same type of page must be created under the selected parent before publishing. Leave blank if there is no minimum
  • Maximum Allowed - This field is how many times the same type of page can be created under the seleted parent before publishing. Leave blank if there is no maximum

Mapping Pages to Real Resources

If you are using ASP.MVC as your application type, the URL's that map to the actions will also map to pages in the CMS, (e.g the Index Action on AboutController \About, or \About\Index will map to \RootPage\About ). If the page does not exist in the CMS, it will map to the closest match up the hierarchy (E.g \RootPage)

If you are using the ASP.NET WebHost application for a stand alone CMS the pages simply are mapped directly to the URL equivalent, e.g \RootPage\ChildPage1\ChildPage2 etc..)

Last edited Jun 9, 2011 at 10:29 PM by methodworx, version 11

Comments

No comments yet.