• New in : SPIP 1.9

#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.

Author Mark Published : Updated : 26/10/12

Translations : català, English, Español, français, Nederlands