! INCLURE and {doublons}
Tuesday, 8. April 2008, 14:47:06
{doublons} arrays can be transmitted to included templates. #ENV can also transmit them.
These sentences are corrects :
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 <INCLURE /> 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 :
-------------
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
These sentences are corrects :
[(#INCLURE{fond=toto}{doublons})]
<INCLURE{fond=toto}{doublons} />
spip.php?page=article&id_article=3&doublons[articles]=1,2,89,12&doublons[documents]=15,12Note 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 <INCLURE /> 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 :
-------------
<INCLURE(other_template.html){delais=0}{doublons} />
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