⇒ http://my.opera.com/tech-nova/blog/
Un site qui recense les astuces et évolutions des possibilités de SPIP.
! INCLURE and doublons
Avril 2008, Par tech-novadoublons arrays can be transmitted to included templates. #ENV can also transmit them.
These sentences are corrects :
[(#INCLURE{fond=toto}{doublons})]
spip.php?page=article&id_article=3&doublons[articles]=1,2,89,12&doublons[documents]=15,12
Note that the doublons are transmitted from the main template to the included one. But it’s not possible to transmit the information from the included template : Especially isn’t always calculated at the same time that the main template - For this reason and to keep a coherent behavior, #INCLURE keeps the same restriction for doublons
Example :
-------------
other_template.html :
BOUCLE(ARTICLES){doublons}{par hasard}{0,1}
Every hit to the main template (generally cached) returns a random article that hasn’t been manipulated before.
commit : http://trac.rezo.net/trac/spip/changeset/11390
announce : http://thread.gmane.org/gmane.comp.web.spip.devel/46926
→ Lire la suite sur le site d’origine…
