Tutorial 3: 10 page website with 5 pages per layout.

This tutorial is to show that Kiriwrite isn't limited to one layout per database as each page is defined by a page template.

To begin, from knowing how to create a template from Tutorial 1, create a template using the following settings:

Setting Value
Template Name The Second Template
Template Description The Second Template for the Kiriwrite tutorial.
Template Filename secondtemplate.html
Template Layout <html>
    <head>
        <title>Second Website - <kiriwrite:pagetitle></title>
    </head>
    <body bgcolor=”#000000”>
        <font color=”#FFFFFF”>
            <kiriwrite:pagecontent>
        </font>
    </body>
</html>

This template will have a black background with white text.

After creating the template, create a new database (as shown in Tutorial 1) with the following settings:

Setting Value
Database Name Tutorial 3
Database Description The database for Tutorial 3
Database Categories
Database Notes
Database Filename tutorial3

From knowing how to add pages from tutorial 1, add ten pages with the following settings as written below to the 'Tutorial 3' database:

Setting page1.html page2.html page3.html page4.html page5.html
Page Name Page One Page Two Page Three Page Four Page Five
Page Description This is page one. This is page two. This is page three. This is page four. This is page five.
Page Section Website One Website One Website One Website One Website One
Page Template The First Template (firsttemplate.html) The First Template (firsttemplate.html) The First Template (firsttemplate.html) The First Template (firsttemplate.html) The First Template (firsttemplate.html)
Page Filename page1.html page2.html page3.html page4.html page5.html
Page Content This is the first page of the first website. This is the second page of the first website. This is the third page of the first website. This is the fourth page of the first website. This is the fifth page of the first website.
Page Settings Use page name and section name. Use page name and section name. Use page name and section name. Use page name and section name. Use page name and section name.

Setting page6.html page7.html page8.html page9.html page10.html
Page Name Page Six Page Seven Page Eight Page Nine Page Ten
Page Description This is page six. This is page seven. This is page eight. This is page nine. This is page ten.
Page Section Website Two Website Two Website Two Website Two Website Two
Page Template The Second Template (secondtemplate.html) The Second Template (secondtemplate.html) The Second Template (secondtemplate.html) The Second Template (secondtemplate.html) The Second Template (secondtemplate.html)
Page Filename page6.html page7.html page8.html page9.html page10.html
Page Content This is the first page of the second website. This is the second page of the second website. This is the third page of the second website. This is the fourth page of the second website. This is the fifth page of the second website.
Page Settings Use page name and section name. Use page name and section name. Use page name and section name. Use page name and section name. Use page name and section name.

After the pages have been entered into the 'Tutorial 3' database. Compile the 'Tutorial 3' (as shown how to in tutorial 1) database and go in the Output Directory and check that pages 1-5 (page1.html, page2.html, page3.html, page4.html, page5.html) have First Website in the page title and pages 6-10 (page6.html, page7.html, page8.html, page9.html, page10.html) have Second Website in the page title and that the background of the page is black while using white text.