Contents of parent loops

Sometimes it’s useful to retrieve contents from a loop which is a parent of the current loop, just by using an ordinary SPIP tag. SPIP offers a special syntax to do this explicitly with the # symbol, by simply identifying which loop you wish to retrieve the data from (where n below is the identifier of the targeted loop):



Display the title of the section (rubrique) beside the title of the current article:

      <li>#_rubs:TITRE - #TITRE</li>

Author Mark Baber Published : Updated : 29/05/10

Translations : English, Español, français