Afficher 5 vignettes consécutives dans une galerie - comments Afficher 5 vignettes consécutives dans une galerie 2011-04-16T12:01:38Z https://files.spip.org/Afficher-5-vignettes-consecutives#comment444423 2011-04-16T12:01:38Z <p>2006, effectivement ^^</p> Afficher 5 vignettes consécutives dans une galerie 2011-04-16T11:48:53Z https://files.spip.org/Afficher-5-vignettes-consecutives#comment444422 2011-04-16T11:48:53Z <p>c'est sur que c'est plus simple maintenant, l'article a été ecrit alors que le filtre pagination n'existait pas, on va dire que c'est devenu une figure de style de ce qu'il fallait faire avec les boucles.</p> Afficher 5 vignettes consécutives dans une galerie 2011-04-16T10:51:43Z https://files.spip.org/Afficher-5-vignettes-consecutives#comment444420 2011-04-16T10:51:43Z <p>Tout cela me paraissait plutôt complexe, voici ma solution :</p> <div class="precode"><pre dir="ltr" style="text-align: left;" class="spip"><code><span class="re11"><BOUCLE_art</span><span class="re12">(ARTICLES)</span><span class="re13"><span class="re41">{id_article?}</span><span class="re41">{pagination 1}</span></span><span class="re10">></span> <span class="re11"><BOUCLE_diapo</span><span class="re12">(DOCUMENTS)</span><span class="re13"><span class="re41">{id_article}</span><span class="re41">{id_document?}</span><span class="re41">{extension == jpg<span class="re50">|png</span><span class="re50">|gif</span>}</span><span class="re41">{pagination 1}</span><span class="re41">{par id_document}</span><span class="re41">{doublons}</span></span><span class="re10">></span> <div style="float:left;width:50px"> <span class="re11"><BOUCLE_diapoprec</span><span class="re12">(DOCUMENTS)</span><span class="re13"><span class="re41">{id_article?}</span><span class="re41">{id_document<<span class="re1">#ID_DOCUMENT</span>}</span><span class="re41">{extension == jpg<span class="re50">|png</span><span class="re50">|gif</span>}</span><span class="re41">{pagination 1}</span><span class="re41">{par id_document}</span><span class="re41">{doublons}</span></span><span class="re10">></span> <a href="spip.php?page=photos&id_article=<span class="re1">#ID_ARTICLE</span>&id_document=<span class="re1">#ID_DOCUMENT</span>">next <span class="re1">#ID_DOCUMENT</span></a> <span class="re15"></BOUCLE_diapoprec></span> </div> <div style="float:left;width:500px"> <img src="<span class="re1">#URL_DOCUMENT</span>" width="400px" style="outline:1px solid #ccc;" width="400px" alt="<span class="re1">#TITRE</span>)]"/> </div> <div style="float:left;width:50px"> <span class="re11"><BOUCLE_diaposuite</span><span class="re12">(DOCUMENTS)</span><span class="re13"><span class="re41">{id_article?}</span><span class="re41">{id_document><span class="re1">#ID_DOCUMENT</span>}</span><span class="re41">{extension == jpg<span class="re50">|png</span><span class="re50">|gif</span>}</span><span class="re41">{pagination 1}</span><span class="re41">{par id_document}</span><span class="re41">{doublons}</span></span><span class="re10">></span> <a href="spip.php?page=photos&id_article=<span class="re1">#ID_ARTICLE</span>&id_document=<span class="re1">#ID_DOCUMENT</span>">next <span class="re1">#ID_DOCUMENT</span></a> <span class="re15"></BOUCLE_diaposuite></span> </div> <span class="re15"></BOUCLE_diapo></span> <span class="re15"></BOUCLE_art></span></code></pre></div>