Tags:
create new tag
view all tags
#VarSCRIPTURLPATH2 ---+++ SCRIPTURLPATH{"script"} -- URL path of TWiki script * As =%<nop>SCRIPTURL{"script"}%=, but doesn't include the protocol and host part of the URL * Like =%<nop>SCRIPTURL{"script"}%=, this variable is aware of ReadOnlyAndMirrorWebs. So it may return a URL of a different site. * Syntax: =%<nop>SCRIPTURLPATH{"script" ...}%= * Supported parameters: | *Parameter:* | *Description:* | *Default:* | | ="script"= | The name of the script. | | | =web="WEB"= | Specifies a web | When a topic name is specified and a web is not, the current web is assumed | | =topic="TOPIC"= or =topic="WEB.TOPIC"= | Specifies a topic or both a web and a topic | | | =master="on"= | A URL on the master site is needed or not. | =off= | * If =web="WEB"= is specified but =topic= is not specified, the resulting URL ends with =WEB=. * Example: =%<nop>SCRIPTURLPATH{"view"}%= expands to ="%SCRIPTURLPATH{"view"}%"= (This might be a null string. Hence surrounded by double quotes) * Example: =%<nop>SCRIPTURLPATH{"view" web="%<nop>WEB%"}%= expands to =%SCRIPTURLPATH{"view" web="%WEB%"}%= * Example: =%<nop>SCRIPTURLPATH{"view" topic="%<nop>TOPIC%"}%= expands to =%SCRIPTURLPATH{"view" topic="%TOPIC%"}%= * Example: Let's assume this site has a web named 'Flowers' whose master site is =http:<nop>//florawiki/cgi-bin=. Then =%<nop>SCRIPTURLPATH{"edit" web="Flowers"}%= expands to =http<nop>://florawiki/cgi-bin/edit/Flowers=. This is because the 'Flower' web on this site is a slave and editing needs to happen on the master site. * Category: DevelopmentVariables, SystemInformationVariables * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarCONTENTMODE][CONTENTMODE]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarPUBURLPATH][PUBURLPATH]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSCRIPTNAME][SCRIPTNAME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSCRIPTSUFFIX][SCRIPTSUFFIX]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSCRIPTURL][SCRIPTURL]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSCRIPTURL2][SCRIPTURL{"script"}]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSCRIPTURLPATH][SCRIPTURLPATH]], ReadOnlyAndMirrorWebs, MetadataRepository, TWikiScripts
E
dit
|
A
nexar
|
Watch
|
Im
p
rimir
|
H
istórico
: r3
<
r2
<
r1
|
We
b
|
V
er tópico
|
Ra
w
edit
|
M
ais ações de tópico
Versão do tópico: r3 - 15 Nov 2012
-
TWikiContributor
Home
Site map
Main web
Sandbox web
TWiki web
Web TWiki
User registration
Usuários
Grupos
Índice
Busca
Alterações
Notificações
Fonte RSS
Estatísticas
Preferências
P
Ver
Raw View
Print version
Find backlinks
History
More topic actions
Editar
Editar modo texto
Attach file or image
Editar preferências do tópico
Marcar novo tópico pai
More topic actions
Referência do usuário
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Manutenção Administrativa
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categorias
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Iniciar sessão
Български
Cesky
Dansk
Deutsch
English
Español
_Français_
Italiano
日本語
한글
Nederlands
Polski
Português
Русский
Svenska
简体中文
簡體中文
E
dit
A
nexar
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Idéias, solicitações, problemas com relação ao TWiki?
Nos dê um retorno
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.VarSCRIPTURLPATH2
.