[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [uk] [vi] [zh] Espace de traduction



June 2010

All the versions of this article:

The |sinon filter (since SPIP 1.6) displays the argument that is passed to it if the tag to which it is applied returns an empty result:

[(#TEXTE|sinon{"there is no text"})]

will display the contents of the #TEXTE tag if that field is not empty, otherwise "there is no text" if #TEXTE returns nothing from the database.

The filters argument can be more complex than just a simple text string:

[(#TEXTE|sinon{#INCLURE{fond=my_page, env, id_article}})]

Show the template of this page Site powered by SPIP | Translation area | Private area