[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



June 2010 — updated on : October 2010

All the versions of this article:

-  |url_absolue (since SPIP 1.8.2) works in the same way as the |liens_absolus filter, but is applied to a tag that returns a URL (e.g. #URL_ARTICLE or #URL_RUBRIQUE...).

<a href="-Publications-"...
will be transformed into <a href="http://le_site.fr/-Publications-"...

<a href="spip.php?rubrique67"...
will transform into
<a href="http://le_site.fr/spip.php?rubrique67"...

In the same fashion, |url_absolue can be applied to the #CHEMIN tag:
[(#CHEMIN{polices/dustismo_bold.ttf}|url_absolue)] will return http://mon_domaine.tld/squelettes-dist/polices/dustismo_bold.ttf .

Warning, this tag retains the protocol (http or https) and the host name of the calling page. To force a particular base URL, it is possible to pass one as an argument. This can prove to be useful if your site is broken down into several sub-domains, but you would still like to force a certain prefix. For example, if your site is comprised of a.the-site.fr, b.the-site.fr, etc.:
will return:
and will return the same value even if the tag is called from within a.the-site.fr.

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