Article validated

The article « #URL_ECRIRE (#URL_ECRIRE - SPIP) »
was validated by George.


Friday 30 December 2022 , by jack

The #URL_ECRIRE tag generates the URL of a private area 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
plug-ins), 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 plug-in 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/)