• New in : SPIP 1.8.2

relative or remote URL

#FICHIER returns the relative URL of the document.


	<video class='video'>
	<BOUCLE_video(DOCUMENTS){id_rubrique}{extension IN mp4,webm}>
		<source src='#FICHIER' type='#MIME_TYPE'>

...will produce the following HTML code:

<video class="video">
	<source src="IMG/mp4/youpi.mp4" type="application/mp4">
	<source src="IMG/webm/youpi.webm" type="video/webm">

For a remote document, #FICHIER displays the full URL to the document.
Example : http://www.other_site.com/rep/document.ext

|basename filter

To extract the file name only, use the filter: |basename :
will return the html code my_document.pdf.

Displaying an image

An interesting usage of this tag is obtained by combining it with the |image_reduire filter to display thumbnail images rather than logos; for example


…will produce the following HTML code:

<img src="local/cache-vignettes/L500xH358/mon_image-0b0cd.jpg?1535709838" width="500" height="358">

Voir aussi

Author Mark Published : Updated : 21/07/23

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