Tags:
create new tag
view all tags

Question

There are variables that give me my TOPIC name, INCLUDINGTOPIC name, and BASETOPIC name.

What will give me my PARENTTOPIC name?

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- VickiBrown - 02 Jul 2007

Answer

ALERT! 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.

%META{"parent" dontrecurse="on"}% (see VarMETA) will produce a link to the parent. This is not quite equivalent to a plain variable, but as close as you can get. Please re-open if this doesn't help you!

-- HaraldJoerg - 02 Jul 2007

I don't want a link. I want the name.

for example, I have a template that pulls information from its parent topic's form. I've been setting the value of the parent using passed URL params when the template is used to create a page.

However, I recently renamed a bunch of pages while moving them to a new web. By the rtime this was done, I had to edit the children accordingly because their parent had undergone a name change. If I had a variable, I coould have simply reset the parent.

Feature request filed.

-- VickiBrown - 02 Jul 2007

duh

-- VickiBrown - 09 Jul 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-07-09 - VickiBrown
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.