Bonjour.
J'ai voulu afficher une liste de 6 produits dans une page.
Ces produits sont regroupé en deux bloc (la disposition de la page rendant ce decoupage necessaire).
J'ai geré l'affichage de ces produits avec la boucle de gestion de page de thelia mais voila, s'il y a un article sur une page, le lien vers la page suivante renvoi vers une page sans article alors que si je dispose d'une douzaine d'article, il n'y aura pas de page vide.
Voila la synthaxe utilisé :
<THELIA_pageprec type="PAGE" num="6" typeaff="0">
<a href="produits.php?id_rubrique=#RUBRIQUE_ID&page=#PAGE_PREC" class="style1" style="text-decoration:underline ">precedent</a>
</THELIA_pageprec>
<THELIA_pagesuiv type="PAGE" num="6" typeaff="0">
<a href="produits.php?id_rubrique=#RUBRIQUE_ID&page=#PAGE_SUIV" class="style1" style="text-decoration:underline ">suivant</a>
</THELIA_pagesuiv>
<THELIA_pages type="PAGE" num="6" typeaff="1">
<THELIA_page type="PAGE" num="6" courante="1" pagecourante="#PAGE_NUM" typeaff="1">
<THELIA_bloc type="PRODUIT" rubrique="#RUBRIQUE_ID" num="3" bloc="2" >
<THELIA_prod type="PRODUIT" rubrique="#RUBRIQUE_ID" num="3" deb="#DEBCOURANT" >
<div style="padding-top:0px">
<TABLE WIDTH=211 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD WIDTH=31 HEIGHT=180 ALT="" valign="top" background="images/yello.jpg">
<img src="images/arrow.jpg" hspace="0" vspace="0" align="top">
</TD>
<TD WIDTH=180 HEIGHT=180 ALT="" valign="top">
<div class="style5" style="padding-left:10px;padding-top:15px;font-weight:bold; ">
#TITRE
</div>
<div style="padding-left:100px;padding-top:5px;font-weight:bold; ">
#PRIX €
</div>
<div style="padding-top:10px ">
<THELIA_img type="IMAGE" produit="#ID" num="1">
<img src="#GRANDE">
</THELIA_img>
</div>
<div class="style1" style="padding-left:100px ">
<strong>
<a href="detail_produit.php?id_rubrique=#RUBRIQUE_ID&id_produit=#ID" class="style1" style="text-decoration:underline">Plus</a>
|
<a href="panier.php?action=ajouter&ref=#REF" class="style1" style="text-decoration:underline ">Acheter</a>
</strong>
</div>
</TD>
</TR>
</TABLE>
</div>
</THELIA_prod>
</td>
<td>
</THELIA_bloc>
</THELIA_page>
</THELIA_pages>
Y'a t'il un argument que j'ai oublié ou quelque chose qui ferait en sorte qu'il n'y ait pas de lien vers une page vide?
Merci