Barnie
(Barnie)
Février 21, 2007, 5:37
1
Hi, I wonder how and where to use the pagination system if the output is splitted into, say, two columns. I tried this scheme:
<BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
#ANCRE_PAGINATION
<BOUCLE_articles_gauche (ARTICLES) {1/2} {id_rubrique} {pagination}>
</BOUCLE_articles_gauche>
<BOUCLE_articles_droit (ARTICLES) {2/2} {id_rubrique} {pagination}>
</BOUCLE_articles_droit>
[(#PAGINATION )]
</BOUCLE_rubrique_principal>
That does not give me a pagination but an error "* zbug_xx: #PAGINATION sans critere {pagination} ou employe dans une boucle recursive, _rubrique_principal". Any help?
First, I think you should use #PAGINATION with a numbering model such as: [(#PAGINATION {page})]
then you should use [(#PAGINATION {page})] outside the two ARTICLES loops that create the columns and in another loop like this:
<BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
<B_page_art>
#ANCRE_PAGINATION
<BOUCLE_page_art(ARTICLES){id_rubrique}{pagination 10}>
</BOUCLE_page_art>
<BOUCLE_articles_gauche (ARTICLES) {1/2} {id_rubrique} {debut_page_art,10}>
</BOUCLE_articles_gauche>
<BOUCLE_articles_droit (ARTICLES) {2/2} {id_rubrique} {debut_page_art,10}>
</BOUCLE_articles_droit>
[(#PAGINATION {page})]
</B_page_art>
</BOUCLE_rubrique_principal>
George
wrote: