SID-01198: Parentweb var
| Status: |
Answered |
TWiki version: |
|
Perl version: |
|
| Category: |
CategoryEditing |
Server OS: |
|
Last update: |
14 years ago |
Hi,
is the parentweb name available as a variable?
If yes; what's her name?
Greetings, Peter
--
TWikiGuest - 2011-06-06
Discussion and Answer
Hello,
Use the
format parameter of WEB variable
http://twiki.org/cgi-bin/view/TWiki/TWikiVariables#VarWEB
--
EnriqueCadalso - 2011-06-07
Thx for your answer, but it dosen't work.
My Wiki structure looks like this:
web - subweb - article
I want to display the name of the subweb in an article.
If i try
%<nop>WEB{format="Parent webs: $parents, current web: $current"}% I get "web", nothing else. Is this an option problem?
Greetings, Peter
--
TWikiGuest - 2011-06-08
The
%WEB% variable returns the full path of the webs, such as
TOPWEB/SUBWEB/SUBSUBWEB. You can use a
SpreadSheetPlugin formula to extract the last web:
* %CALC{$LISTITEM(-1, $SPLIT(/, %WEB%))}%
Returns:
Here on twiki.org we have no sub-webs, so you only get
Support.
--
PeterThoeny - 2011-07-30
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.