[SPIP] Submitted : #URL_ECRIRE

SPIP

Article submitted

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


#URL_ECRIRE

Friday 30 December 2022 , by jack

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

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

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

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:

#URL_ECRIRE


{formulaires_voir,id_formulaire=

#ID_FORMULAIRE

}

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

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

For information on ecrire Extending SPIP
(SPIP)

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

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

rubon199-7e493.jpg