PRD Themes
From Rhypedigital
[edit] Themes
Each website has an associated theme, specified by the ho_style entry in the host table. A theme compriese a set of files, which may include CSS pages, images and HTML text. In addition, there should be an index.skel file from which index.html is generated, and article.skel from which pages are generated for each published article. The .skel files use normal RiPHPLib skeleton substitution.
Within the index.skel file, the list of articles is generated using code such at the folllowing:
#repeat articles
<b><a href='%{link:report}'>%{title:report}</a></b>
<br/>
%{summary:report}
<br/>
<hr/>
#endrepeat articles
The #repeat ... #endrepeat section iterates over all published articles in descending from-date (ie., most recently published first) order. The %{name:report} substitutions are replaced by, for name:
- link: Link to the article page
- title: Generated title text
- summary: Generated summary text
The article.skel file is processed once for each published article. In this case the %{name:report} substitutions are, for that article:
- title: Generated title text
- summary: Generated summary text
- body:: Generated body text
- seo:: Generated search engine optimisation text
- keywords:: Generated keywords text
- description:: Generated description text
To produce a directory-listing type site, the article.skel file can be empty (but must exist), while the index.skel file should not contain any %{link:report} substitutions.
