Révisions :
« titre_parent:description : couteauprive - en »

Révisions

# Date Auteur
Avril 2012 PatV
Janvier 2011 -1

Différences entre version No2 et version No1

Texte de la chaine de langue

Within a loop, it is common to want to show the title of the parent of the current object. You normally need to use a second loop to do this, but a new tag #TITRE_PARENT makes the syntax easier. In the case of a MOTS loop, the tag gives the title of the keyword group. For other objects (articles, sections, news items, etc.) it gives the title of the parent section (if one such exists).

Note : For keywords, #TITRE_GROUPE is an alias tag for #TITRE_PARENT. SPIP? treats the contents of these new tags as it does other #TITRE tags.

@puce@ If you are using SPIP 2., then you can use an array of tags of this form : #TITRE_XXX, which give you the title of the object ’xxx’, provided that the field ’id_xxx’ is present in the current table (i.e. #ID_XXX is available in the current loop).

For example, in an (ARTICLES) loop, #TITRE_SECTEUR will give the title of the sector of the current article, since the identifier #ID_SECTEUR (or the field ’id_secteur’) is available in the loop.

The code #TITRE_XXX{yy} is also available to be used. Example : #TITRE_ARTICLE{10} will return the title of article #10. [1]

Traducteur(s)
3813, 4652
Statut
MODIF
Notes

[1%titres_etendus%