#VAL

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)

Author Mark Published : Updated : 26/10/12

Translations : عربي, català, English, Español, français, Nederlands, slovenčina