[SPIP] Proposé : #_n:BALISE

SPIP

Article proposé

L’article « #_n:BALISE » est proposé à la publication depuis le jeudi 21 août 2025.


#_n:BALISE

jeudi 21 août 2025, par jack

It is sometimes useful to retrieve the content of a parent loop from the current loop using a tag. SPIP has a syntax for this (n being the identifier of the desired loop) :

#_n:TAG

Example

Systematically display the section title along with the article title :

<BOUCLE_rubs(RUBRIQUES)>
        <ul>
              <BOUCLE_arts(ARTICLES){id_rubrique}>
              <li>#_rubs:TITRE - #TITRE</li>
              </BOUCLE_arts>
        </ul>
</BOUCLE_rubs>

— Envoyé par SPIP