[SPIP] Submitted : #URL_ECRIRE


Article submitted

The article « #URL_ECRIRE
(SPIP) » is submitted
for publication. on Friday 30 December 2022.


Friday 30 December 2022 , by jack

The #URL_ECRIRE tag makes the URL of a private aera script if it

This tag allows you to write links to the ?exec scripts in the private

Thus, [<a href="(#URL_ECRIRE{unscript})"> ... </a>] will call

If the script does not exist (i.e. if there is no file of the name
indicated, in the exec directories known to SPIP and the installed
plugins), this tag returns nothing, and consequently the whole template
extract above will return the empty string. This is very convenient for
producing a link only if the plugin that responds to it is installed.

It is possible to complete the URL with a Query-String, by giving it as a
second argument to the tag:





If there is a need to pass more than one parameter, it is also possible to
use the filter parametre_url

With no arguments, this tag returns the URL of the home page of the private

For information on ecrire Extending SPIP

To generate a URL for the public area, use #URL_PAGE

— Sent by SPIP (https://www.spip.net/)