[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


|choixsivide{ifyes, ifnot}

July 2010 — updated on : June 2010

All the versions of this article:

The |choixsivide{ifyes, ifnot} filter is equivalent to the |?{sioui, sinon} filter. It accepts either one or two parameters:
-  ifyes is the value to display instead of the filtered element if that element returns an empty value itself.
-  ifnot is the value to display if the filtered element is not empty.

[(#TEXTE|choixsivide{"no text present", #TEXTE})] displays "no text present" if the #TEXTE field has not been filled out in the private zone when the item was created, and just displays the contents of#TEXTE if it was entered.

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