Tutorial 1: Three Page Website with layout

This tutorial is to show how Kiriwrite works in a basic form by creating a three page website which all use the same layout.

To begin, start by going to the location where Kiriwrite is installed and then click on the View Templates menu link. Click on the Add Template sub-menu link and enter the following settings for the new template:

Setting Value
Template Name The First Template
Template Description The First Template for the Kiriwrite tutorial.
Template Filename firsttemplate.html
Template Layout <html>
    <head>
        <title>First Website - <kiriwrite:pagetitle></title>
    </head>
    <body>
        <kiriwrite:pagecontent>
    </body>
</html>

After the template settings have been entered, click on the 'Add Template' button. The template should be added to the template database (and the template database created if it doesn't exist).

Click on the 'View Databases' link and then click on the 'Add Database' button and enter the following settings for the new database:

Setting Value
Database Name Tutorial 1
Database Description The database for Tutorial 1
Database Categories
Database Notes
Database Filename tutorial1

After the database settings have been entered, click on the 'Add Database' button to create a database with the settings given and then click on the 'Return to the database list link'. When the list of databases appears click on the link for the 'Tutorial 1' database and the page list for the database will appear. As there are no pages in the database a message will appear saying that there are no pages in the database.

Click on the 'Add Page' link the sub-menu and then enter the following information for the new page.

Setting Value
Page Name The first page
Page Description This is the first page.
Page Section Section
Page Template The First Template (firsttemplate.html)
Page Filename firstpage.html
Page Content This is the content for the first page.
Page Settings Use page name and section name.

After the page settings have been entered, click on the 'Add Page' button and the page should be added to the Tutorial 1 database. Click on the 'Return to the page list for the 'Tutorial 1' database.' link to return to the page list. Repeat this same process for the next two pages.

Setting secondpage.html thirdpage.html
Page Name The second page The third page
Page Description This is the second page. This is the third page.
Page Section Section Section
Page Template The First Template (firsttemplate.html) The First Template (firsttemplate.html)
Page Filename secondpage.html thirdpage.html
Page Content This is the content for the second page. This is the content for the third page.
Page Settings Use page name and section name. Use page name and section name.

Once those two pages have been added, click on the 'Compile Pages' menu link. From the list of available databases to compile, click on the Compile link that to the right of the database with the name 'Tutorial 1'. A confirmation message then asking if it should be compiled and clicking on the 'Compile Database' will compile the pages in that database with the template and put them in the Output Directory.

Look in the output directory and you will see three files: firstpage.html, secondpage.html and thirdpage.html. Check the source code of each page to see if they've used the same layout but using different content that was specified by each page.