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

  • New in : SPIP 2.1

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' />.

Author Mark Published : Updated : 26/10/12

Translations : català, English, français, Nederlands