Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Incorrect link fixed.
[kiriwrite/.git] / Documentation / English (British) / tutorial-tutorial3.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">\r
2 <html>\r
3         <head>\r
4                 <link href="style.css" REL="stylesheet" TYPE="text/css" MEDIA="screen">\r
5                 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">\r
6                 <title>Kiriwrite Documentation - Tutorial Documentation - Tutorial 3: 10 page website with 5 pages per layout.</title>\r
7         </head>\r
8         <body>\r
9                 <div class="menubarback">\r
10                         <div class="menubar">\r
11                                 <span class="apptitle">Kiriwrite</span>\r
12                                 <a href="index.html">Index</a> | <a href="user.html">User \r
13 Documentation</a> | <a href="tutorial.html">Tutorial Documentation</a> | \r
14 <a href="developer.html">Developer Documentation</a>\r
15                         </div>\r
16                 </div>\r
17                 <div class="pageinformation">\r
18                         <span class="pagetitle">Tutorial 3: 10 page website with 5 pages per layout.</span><br><br>\r
19 \r
20 This tutorial is to show that Kiriwrite isn't limited to one layout per database as each page is defined by a page template.<br><br>\r
21 \r
22 To begin, from knowing how to create a template from Tutorial 1, create a template using the following settings:<br><br>\r
23 \r
24 <table class="infotable">\r
25     <tr>\r
26         <td class="tableheading">Setting</td>\r
27         <td class="tableheading">Value</td>\r
28     </tr>\r
29     <tr>\r
30         <td class="tabledata">Template Name</td>\r
31         <td class="tabledata">The Second Template</td>\r
32     </tr>\r
33     <tr>\r
34         <td class="tabledata">Template Description</td>\r
35         <td class="tabledata">The Second Template for the Kiriwrite tutorial.</td>\r
36     </tr>\r
37     <tr>\r
38         <td class="tabledata">Template Filename</td>\r
39         <td class="tabledata">secondtemplate.html</td>\r
40     </tr>\r
41     <tr>\r
42         <td class="tabledata">Template Layout</td>\r
43         <td class="tabledata">&lt;html&gt;<br>\r
44 &nbsp;&nbsp;&nbsp;&nbsp;&lt;head&gt;<br>\r
45 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;Second Website - &lt;kiriwrite:pagetitle&gt;&lt;/title&gt;<br>\r
46 &nbsp;&nbsp;&nbsp;&nbsp;&lt;/head&gt;<br>\r
47 &nbsp;&nbsp;&nbsp;&nbsp;&lt;body bgcolor=”#000000”&gt;<br>\r
48 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;font color=”#FFFFFF”&gt;<br>\r
49 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;kiriwrite:pagecontent&gt;<br>\r
50 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/font&gt;<br>\r
51 &nbsp;&nbsp;&nbsp;&nbsp;&lt;/body&gt;<br>\r
52 &lt;/html&gt;\r
53         </td>\r
54     </tr>\r
55 </table>\r
56 \r
57 <br>\r
58 \r
59 This template will have a black background with white text.<br><br>\r
60 \r
61 After creating the template, create a new database (as shown in Tutorial 1) with the following settings:<br><br>\r
62 \r
63 <table class="infotable">\r
64     <tr>\r
65         <td class="tableheading">Setting</td>\r
66         <td class="tableheading">Value</td>\r
67     </tr>\r
68     <tr>\r
69         <td class="tabledata">Database Name</td>\r
70         <td class="tabledata">Tutorial 3</td>\r
71     </tr>\r
72     <tr>\r
73         <td class="tabledata">Database Description</td>\r
74         <td class="tabledata">The database for Tutorial 3</td>\r
75     </tr>\r
76     <tr>\r
77         <td class="tabledata">Database Categories</td>\r
78         <td class="tabledata"></td>\r
79     </tr>\r
80     <tr>\r
81         <td class="tabledata">Database Notes</td>\r
82         <td class="tabledata"></td>\r
83     </tr>\r
84     <tr>\r
85         <td class="tabledata">Database Filename</td>\r
86         <td class="tabledata">tutorial3</td>\r
87     </tr>\r
88 </table>\r
89 \r
90 <br>\r
91 \r
92 From knowing how to add pages from tutorial 1, add ten pages with the following settings as written below to the 'Tutorial 3' database:<br><br>\r
93 \r
94 <table class="infotable">\r
95     <tr>\r
96         <td class="tableheading">Setting</td>\r
97         <td class="tableheading">page1.html</td>\r
98         <td class="tableheading">page2.html</td>\r
99         <td class="tableheading">page3.html</td>\r
100         <td class="tableheading">page4.html</td>\r
101         <td class="tableheading">page5.html</td>\r
102     </tr>\r
103     <tr>\r
104         <td class="tabledata">Page Name</td>\r
105         <td class="tabledata">Page One</td>\r
106         <td class="tabledata">Page Two</td>\r
107         <td class="tabledata">Page Three</td>\r
108         <td class="tabledata">Page Four</td>\r
109         <td class="tabledata">Page Five</td>\r
110     </tr>\r
111     <tr>\r
112         <td class="tabledata">Page Description</td>\r
113         <td class="tabledata">This is page one.</td>\r
114         <td class="tabledata">This is page two.</td>\r
115         <td class="tabledata">This is page three.</td>\r
116         <td class="tabledata">This is page four.</td>\r
117         <td class="tabledata">This is page five.</td>\r
118     </tr>\r
119     <tr>\r
120         <td class="tabledata">Page Section</td>\r
121         <td class="tabledata">Website One</td>\r
122         <td class="tabledata">Website One</td>\r
123         <td class="tabledata">Website One</td>\r
124         <td class="tabledata">Website One</td>\r
125         <td class="tabledata">Website One</td>\r
126     </tr>\r
127     <tr>\r
128         <td class="tabledata">Page Template</td>\r
129         <td class="tabledata">The First Template (firsttemplate.html)</td>\r
130         <td class="tabledata">The First Template (firsttemplate.html)</td>\r
131         <td class="tabledata">The First Template (firsttemplate.html)</td>\r
132         <td class="tabledata">The First Template (firsttemplate.html)</td>\r
133         <td class="tabledata">The First Template (firsttemplate.html)</td>\r
134     </tr>\r
135     <tr>\r
136         <td class="tabledata">Page Filename</td>\r
137         <td class="tabledata">page1.html</td>\r
138         <td class="tabledata">page2.html</td>\r
139         <td class="tabledata">page3.html</td>\r
140         <td class="tabledata">page4.html</td>\r
141         <td class="tabledata">page5.html</td>\r
142     </tr>\r
143     <tr>\r
144         <td class="tabledata">Page Content</td>\r
145         <td class="tabledata">This is the first page of the first website.</td>\r
146         <td class="tabledata">This is the second page of the first website.</td>\r
147         <td class="tabledata">This is the third page of the first website.</td>\r
148         <td class="tabledata">This is the fourth page of the first website.</td>\r
149         <td class="tabledata">This is the fifth page of the first website.</td>\r
150     </tr>\r
151     <tr>\r
152         <td class="tabledata">Page Settings</td>\r
153         <td class="tabledata">Use page name and section name.</td>\r
154         <td class="tabledata">Use page name and section name.</td>\r
155         <td class="tabledata">Use page name and section name.</td>\r
156         <td class="tabledata">Use page name and section name.</td>\r
157         <td class="tabledata">Use page name and section name.</td>\r
158     </tr>\r
159 </table>\r
160 \r
161 <br>\r
162 \r
163 <table class="infotable">\r
164     <tr>\r
165         <td class="tableheading">Setting</td>\r
166         <td class="tableheading">page6.html</td>\r
167         <td class="tableheading">page7.html</td>\r
168         <td class="tableheading">page8.html</td>\r
169         <td class="tableheading">page9.html</td>\r
170         <td class="tableheading">page10.html</td>\r
171     </tr>\r
172     <tr>\r
173         <td class="tabledata">Page Name</td>\r
174         <td class="tabledata">Page Six</td>\r
175         <td class="tabledata">Page Seven</td>\r
176         <td class="tabledata">Page Eight</td>\r
177         <td class="tabledata">Page Nine</td>\r
178         <td class="tabledata">Page Ten</td>\r
179     </tr>\r
180     <tr>\r
181         <td class="tabledata">Page Description</td>\r
182         <td class="tabledata">This is page six.</td>\r
183         <td class="tabledata">This is page seven.</td>\r
184         <td class="tabledata">This is page eight.</td>\r
185         <td class="tabledata">This is page nine.</td>\r
186         <td class="tabledata">This is page ten.</td>\r
187     </tr>\r
188     <tr>\r
189         <td class="tabledata">Page Section</td>\r
190         <td class="tabledata">Website Two</td>\r
191         <td class="tabledata">Website Two</td>\r
192         <td class="tabledata">Website Two</td>\r
193         <td class="tabledata">Website Two</td>\r
194         <td class="tabledata">Website Two</td>\r
195     </tr>\r
196     <tr>\r
197         <td class="tabledata">Page Template</td>\r
198         <td class="tabledata">The Second Template (secondtemplate.html)</td>\r
199         <td class="tabledata">The Second Template (secondtemplate.html)</td>\r
200         <td class="tabledata">The Second Template (secondtemplate.html)</td>\r
201         <td class="tabledata">The Second Template (secondtemplate.html)</td>\r
202         <td class="tabledata">The Second Template (secondtemplate.html)</td>\r
203     </tr>\r
204     <tr>\r
205         <td class="tabledata">Page Filename</td>\r
206         <td class="tabledata">page6.html</td>\r
207         <td class="tabledata">page7.html</td>\r
208         <td class="tabledata">page8.html</td>\r
209         <td class="tabledata">page9.html</td>\r
210         <td class="tabledata">page10.html</td>\r
211     </tr>\r
212     <tr>\r
213         <td class="tabledata">Page Content</td>\r
214         <td class="tabledata">This is the first page of the second website.</td>\r
215         <td class="tabledata">This is the second page of the second website.</td>\r
216         <td class="tabledata">This is the third page of the second website.</td>\r
217         <td class="tabledata">This is the fourth page of the second website.</td>\r
218         <td class="tabledata">This is the fifth page of the second website.</td>\r
219     </tr>\r
220     <tr>\r
221         <td class="tabledata">Page Settings</td>\r
222         <td class="tabledata">Use page name and section name.</td>\r
223         <td class="tabledata">Use page name and section name.</td>\r
224         <td class="tabledata">Use page name and section name.</td>\r
225         <td class="tabledata">Use page name and section name.</td>\r
226         <td class="tabledata">Use page name and section name.</td>\r
227     </tr>\r
228 </table>\r
229 \r
230 <br>\r
231 \r
232 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.\r
233                 </div>\r
234         </body>\r
235 </html>\r
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy