Документ взят из кэша поисковой машины. Адрес оригинального документа : http://wiki.cs.msu.ru/System/VarSCRIPTURL?rev=1
Дата изменения: Unknown
Дата индексирования: Sun Apr 10 05:03:24 2016
Кодировка: koi8-r
VarSCRIPTURL < System < Foswiki
You are here: Foswiki>System Web>Macros>VarSCRIPTURL (revision 1)EditAttach

SCRIPTURL{"script"} -- URL of script

  • Syntax: %SCRIPTURL% OR %SCRIPTURL{"script"}%
  • %SCRIPTURL% returns the base URL of scripts - expands to http://wiki.cs.msu.ru/bin
  • Expands to: http://wiki.cs.msu.ru/bin/script
  • Example: To get the authenticated version of the current topic you can write %SCRIPTURL{"viewauth"}%/%WEB%/%TOPIC% which expands to http://wiki.cs.msu.ru/bin/viewauth/System/VarSCRIPTURL
    ALERT! In most cases you should use %SCRIPTURLPATH{"script"}% instead, as it works with URL rewriting much better

    ALERT! The edit script should always be used in conjunction with ?t=%GMTIME{"$epoch"}% to ensure pages about to be edited are not cached in the browser
  • Related: PUBURL, SCRIPTNAME, SCRIPTSUFFIX, SCRIPTURLPATH
Topic revision: r1 - 19 Sep 2010, ProjectContributor
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback