Page templates
If we take the blogs/ pipeline as an example, it starts with generating the blogssidmall.xml page that you find in the sidmallar folder.
<page>
<lang>en</lang>
<layout>../css2col</layout>
<layout>../streams</layout>
<layout>../form</layout>
<headbox>
<headbox>head</headbox>
</headbox>
<headbox2>
<headbox2>head</headbox2>
</headbox2>
<headbox3>
<headbox3>head</headbox3>
</headbox3>
<header>
<mainmenubar type="mainmenu">head</mainmenubar>
</header>
<col1>
<body type="diskutera">blogs</body>
<body type="stream">blogoverview</body>
</col1>
</page>
- First, the <lang> tag will create a page with an ”en” language tag.
- Then, the system will associate six css files with the page
-
- css2col.css, css2col_print.css
- streams.css, streams_print.css
- form.css, form_print.css
- After that, the system will create a <div> tag for each remaining element:
-
- <headbox> results in <div id=”headbox”>. Encountering <headbox>head</headbox>, the system will look in the head.htm file in the word folder, and look for a paragraph using the headbox style
- As you might have guessed, the system then creates <div id=”headbox2”>, and picks the paragraph using the headbox2 style from head.htm
- <mainmenubar type="mainmenu"> is treated slightly different. This item creates the main menu bar, and places a “../” before each url, to make sure you get the correct page when clicking.
- <body type="diskutera">blogs</body> This creates the first part of the page contents, with the blog creation form, defined in blogs_admin.xml
- <body type="stream">blogoverview</body> When the blogs have been created, it will display an overview of all the blogs, using the blogoverview.xml stream pattern.