• New in : SPIP 1.9

#URL_PAGE 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,

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

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

  1. [(#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.

See also

Author Mark Published : Updated : 19/09/22

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