First we include the header template, which is common to all publication pages:
<!**
include header.tpl>
In the header we may:
- print the publication name:
<!**
print publication name>
- print the issue name, number and publication date:
<!**
print issue name>, <!**
print issue number>, <!**
print issue date>
- check if the current issue was the last published issue:
<!**
if issue iscurrent>
Next, we build the left menu:
<!**
include navigationtemplate.tpl>
(see
5.2.2 Generating a navigation template)
Now we can build the home page content by printing a short
descriptioin of articles selected to be highlighted on this page:
<!** list article onfrontpage is on>
<p><a href="<!** uri article>"><!** print article name></a></p>
<br>on <!** print article date>, by <!** print article author>
<br><!** print article intro>
<!** endlist>
The
first line will create a list of articles that have "Show article on
front page" option checked. Then we create a link to the full article
content (line 2), display the article date and author (line 3) and
finally the short description (line 3).
The last thing to do is include the footer:
<!** include footer.tpl>
Template footer.tpl is not explained here. For more details on
the front page code download the demo templates from Campsite
download page.