SPIP

[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

Download

#VAL

July 2010 — updated on : June 2010

All the versions of this article:


The #VAL tag accepts a parameter which is evaluated and returned without any further processing.

This makes it possible to apply filters to constants.

For example: [(#VAL{<:chaine_de_langue:>}|image_typo)] (which is equivalent to <:chaine_de_langue|image_typo:>)

or perhaps

If you wanted to assign a (.css) stylesheet for each day of the week, you could that with the following code:

[<link rel="stylesheet"
href="squelettes/styles/jour_(#VAL{w}|date{#DATE|strtotime}).css"
type="text/css" />]

The stylesheets would be named respectively from jour_0.css through jour_6.css (translated as: jour_sunday.css through jour_saturday.css)


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