Standard page is the template used in the content page. This page is default template of the content management system.
- Design Setting
- Server side program
Standard pages are content page of the online document. This is the default template.
The default setting of the Standard Page is 2 column layout. The navigation parts and side parts is on the left of the template. This 2 column layout is implemented by the Container Template.
The setting of the Standard Template is following.
The layout setting is below.
This template contain following parts.
The Middle of Main Page is the Container Template which includes the main part of this page. The Main part has side area and article area, and it is located in the 2 column lines.
The Html of this template to be generated is below.
In this template, The "$autoHeader" section is to be replaced with the html code generated from the layout setting you set.
The style sheet of this template is below. The publishing engine generate "$autoHeader" section, and it is wrapped by the "div" tag whose id is "wrap".
The server side program of the Standard Pages is below.
The server side program of the Top Templates are almost same. Therefore, understanding one of this template means understanding other ones.
The main part of this program is below.
This program has 3 segments, each one does following procedure.
- Get current page object
- Making title
- Make $self variable which is the canonical url of this page
At the first section, getting the current page object by calling "getPage()" function. The code of the function is below.
After getting the page object from the database, make the title.
The sub title is optional, so, when the subtitle is input, add it.
To make the canonical url, it uses "getSchemeAndSite()" and "getUrl()" function like source code below.