[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



August 2010 — updated on : July 2010

All the versions of this article:

The #URL_ARTICLE tag displays the relative URL (i.e the address without the http://domain_name.ext/ part) for the article referenced by an ARTICLES loop.

This tag is therefore used to generate links: <a href="#URL_ARTICLE"> ... </a> independently of the configuration choice made for the type of URLs for the site.
The HTML source returned could be in the form of:

  • spip.php?article146 (page)
  • Article_title.html (propres2)
  • article146.html (html)
  • ...

Any time that you change the URL mode, the tag will always generate the right kind of URL.

Outside of an ARTICLES loop, it is possible to request the generation of the URL for a specific article by passing its ID as an argument to the tag: #URL_ARTICLE{44} will therefore displays the appropriate URL for the article with ID=44.

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