Article proposé
---------------
L'article "Automatically displaying by date or other imposed order" est
proposé à la publication.
Vous êtes invité à venir le consulter et à donner votre opinion
dans le forum qui lui est attaché. Il est disponible à l'adresse :
http://www.spip.net/ecrire/articles.php3?id_article=2159
** Automatically displaying by date or other imposed order **
par Paul Knight
The situation is as follows: within the same site, the presentation of
articles in various sections must be differentiated:
in certain sections, the articles are published one after the other, we
therefore want them displayed in chronological order with the most recent
at the top of the list and the oldest at the bottom.
in other sections, we want to control the order of articles displayed on
the public site by numbering them (“1. The first article”, “2. The
second article”, etc.).
These effects can be achieved as follows:
We are in a section loop, (for example, the page "rubrique.html"):
... (...)