La boucle PAGE spip et thelia
De TheliaDoc
Erreur lors de la création de la miniature : Impossible d'enregistrer la vignette sur la destination
Attention ces boucles nécessitent l'installation du plugin spip-thelia
Sommaire
Param entrée
num : nombre de produits par page
courante : on veut la page courante
pagecourante : page courante
typeaff : 0 ou 1 ( 0 --> page suivante/précédente, 1-->pages )
max : nombre de pages max
affmin : affichage minimum
avance : precedente ou suivante (pour afficher page suiv, page prec)
Param sortie
THELIA-PAGE_NUM : numéro de page
THELIA-PAGE_SUIV : page suivante
THELIA-PAGE_PREC : page précédente
THELIA-RUBRIQUE : rubrique
Substitutions page
THELIA-PAGE_CUR : retourne le numéro de la page courante
Page suivante / Nombre de page / Page précdédente
<THELIA_PAGEPREC type="PAGE" rubrique="THELIA-RUBRIQUE_ID" num="12" typeaff="0" avance="precedente"> <a href="#URL_PAGE{rubrique_thelia,id_rubrique=THELIA-RUBRIQUE_ID&page_thelia=THELIA-PAGE_PREC}" class="LIEN_pages"><:spipthelia:page_precedente:></a> </THELIA_PAGEPREC> <THELIA_CPAGE type="PAGE" rubrique="THELIA-RUBRIQUE_ID" num="12" max="10" typeaff="1"> | <THELIA_PAGECONT_PASCOUR type="PAGE" rubrique="THELIA-RUBRIQUE_ID" num="12" courante="0" pagecourante="THELIA-PAGE_NUM" max="10" typeaff="1"> <a href="#URL_PAGE{rubrique_thelia,id_rubrique=THELIA-RUBRIQUE_ID&page_thelia=THELIA-PAGE_NUM}" class="LIEN_pages">THELIA-PAGE_NUM</a> </THELIA_PAGECONT_PASCOUR> <THELIA_PAGECONT_COUR type="PAGE" rubrique="THELIA-RUBRIQUE_ID" num="12" courante="1" pagecourante="THELIA-PAGE_NUM" max="10" typeaff="1"> THELIA-PAGE_NUM </THELIA_PAGECONT_COUR> </THELIA_CPAGE> <THELIA_PAGE_SUIVANTE type="PAGE" rubrique="THELIA-RUBRIQUE_ID" num="12" max="10" typeaff="0" avance="suivante"> | <a href="#URL_PAGE{rubrique_thelia,id_rubrique=THELIA-RUBRIQUE_ID&page_thelia=THELIA-PAGE_SUIV}" class="LIEN_pages"><:spipthelia:page_suivante:></a> </THELIA_PAGE_SUIVANTE>
--alainormandie 19 septembre 2008 à 14:32 (CEST)