Let’s use the loops’ power, read this article, and put this in pratice :
"The alternative code (ended by <//Bn>
) is displayed instead of the loop, thus replacing the optional “before” and “after” codes, if the loop doesn’t return any results at all."
This should be used on the article page as :
<B_principale>
<BOUCLE_principale(ARTICLES){id_article}>
blah, blah, blah
</BOUCLE_principale>
<INCLURE(unknown.php3)>
<//B_principale>
Next, create the couple unknown.php3 unknown.html.
For the page unknown .html you can offer text and a redirection to the home page or the site map, for example.
Or an automatic redirection.
Aucune discussion
Ajouter un commentaire
Avant de faire part d’un problème sur un plugin X, merci de lire ce qui suit :
Merci d’avance pour les personnes qui vous aideront !
Par ailleurs, n’oubliez pas que les contributeurs et contributrices ont une vie en dehors de SPIP.
Suivre les commentaires : |