[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

All the versions of this article:

The #FICHIER tag (since SPIP 1.8.2) displays the relative URL of the document [1]; for example: IMG/pdf/my_document.pdf.
To extract just the name of the file, we can apply the filter: |basename: [(#FICHIER|basename)] (will display my_document.pdf).

An interesting usage of this tag is obtained by combining it with the |image_reduire filter, as part of a portfolio used to display thumbnail images rather than logos; for example, by using

href="#URL_DOCUMENT">(#FICHIER|image_reduire{500}) </a>]


[1For remote documents, #FICHIER displays the complete URL to the document (http://other_site.com/dir/document.ext)

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