Article proposé
---------------
L'article "2. A template, several articles" 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=2139
** 2. A template, several articles **
par Paul Knight
The preceding lesson enabled us to extract the content of article no 1
from the database and build a web pages from it. Let us generalize...
Our template is quite useless if it can only display article no 1. Lets
enhance it to display any article:
For that we will call our web page with a parameter, id_article=2 Type the
following into your we browser
http://yoursite.net/tutorial.php3?id_article=2.
And there it appears... article 1. Let us modify the line in the
tutorial.html template that defines the "article loop":
<BOUCLE_article(ARTICLES)id_article>
(As you can see, you simply replace id_article=1 with (...)