Home « Server software «
Documentation: articles/layout_articles_as_daily.php
Class Layout_articles_as_daily extends Layout_interface - Layout articles as a daily weblog do
This layout is made of dates, followed by articles displayed in boxes. Each date is written before a horizontal ruler (e.g., <hr>). Each article has its own box. Post title is used as box title. Box content is made of several components:- a time stamp, followed by a link to the section, plus up to three links to related categories
- page introduction, if any
- post content, up to some hundred words
- a menu bar linking the entry to its permanent reference, to attached files, to comments and to related links;
Largely inspired by http://joi.ito.com/.
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
Testeurs:
- Timster
items_per_page() - The preferred number of items for this layout
function items_per_page()
- returns 10, to list the ten most recent entries
Voir aussi:
layout() - List articles as a daily weblog do
function &layout(&$result, $capability='?')
- &$result - resource the SQL result
- $capability='?' - string '?' or 'A', to support editors and to impersonate associates, where applicable
- returns string the rendered text
Voir aussi: