[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



July 2010 — updated on : June 2010

All the versions of this article:

The |balise_img filter generates a full image tag (<img src="...) from the name of the file to which it is applied.

This filter is useful for referencing a file stored in a filesystem library, rather than one that has been declared and defined through SPIP’s private zone and possibly linked to a section or article.

It is possible to pass a value for the alt and class attributes if desired by supplying these two arguments to the filter:
|balise_img{alt_value, class_value}.

[(#CHEMIN{myimage.png}|balise_img{landscape, spip_doc})]
will produce the tag:
<img src='le_rep/myimage.png' width='180' height='56" alt='landscape' class='spip_doc' />.

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