#VarSCRIPTURL ---+++ SCRIPTURL{"script"} -- URL of script * Syntax: =%<nop>SCRIPTURL%= OR =%<nop>SCRIPTURL{"script"}%= * =%<nop>SCRIPTURL%= returns the base URL of scripts - expands to %SCRIPTURL% * Expands to: =%SCRIPTURL{"script"}%= * Example: To get the authenticated version of the current topic you can write =%<nop>SCRIPTURL{"viewauth"}%/%<nop>WEB%/%<nop>TOPIC%= which expands to =%SCRIPTURL{"viewauth"}%/%WEB%/%INCLUDINGTOPIC%= <blockquote class="foswikiHelp">%X% In most cases you should use =%<nop>SCRIPTURLPATH{"script"}%= instead, as it works with URL rewriting much better<p></p> %X% The =edit= script should always be used in conjunction with =?t=%<nop>GMTIME{"$epoch"}%= to ensure pages about to be edited are not cached in the browser</blockquote> * Related: [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarPUBURL][PUBURL]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarSCRIPTNAME][SCRIPTNAME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarSCRIPTSUFFIX][SCRIPTSUFFIX]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarSCRIPTURLPATH][SCRIPTURLPATH]]
This topic: System
>
WebHome
>
Macros
>
VarSCRIPTURL
Topic revision: revision 1 (raw view)
Copyright &© by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding BACCHUS Wiki?
Send feedback