[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 — updated on : August 2010

All the versions of this article:

#URL_PAGE (since SPIP 1.9) returns a "page" type of URL (see Using personalised URLs), for the page passed as a parameter and which can then be used in an HTML link.
For example, to access the page generated by the toto.html template file located in your "squelettes" folder, #URL_PAGE{toto} will automatically generate the URL: spip.php?page=toto.
A second parameter can be used to add parameters to the URL. Example: #URL_PAGE{toto,id_article=#ID_ARTICLE} will generate the URL: spip.php?page=toto&id_article=XXX.

If you want to pass more parameters, you would be better to opt for the following syntax instead: [(#URL_PAGE{message}|parametre_url{'id_article',#ID_ARTICLE}| parametre_url{'lang',#LANG})] which will generate spip.php?page=message&id_article=XXX&lang=YY.

The #parametre_url filter is also useful here.

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