We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

I am puzzled. I think this should work:

<!--
   * Set TOPICPARENT = %META{"parent" dontrecurse="on"}%
-->

---+  %FORMFIELD{"ProjectName" topic="%TOPICPARENT%"}%

but the header is suspiciously missing.

A simple

My parent is %TOPICPARENT%

shows the value I expect and that parent page does have a form attached with the ProjectName field filled in.

I can't make this work either

---+!!  %FORMFIELD{"ProjectName" topic="%META{"parent" dontrecurse="on"}%" }%

Can someone explain? This looks like a bug. Is there some syntactic incantation I can do to make it work?

Environment

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

-- VickiBrown - 10 Jul 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Erm.... I seem to recall that Crawford informed us that you have to use format="$topic" in Codev.ParentTopicVariable? We both missed it since it is not (yet) documented in TWiki.VarMETA, though it works at twiki.org. Let me try: I edit this topic to use Support. ParentTopicVariable as parent, and then pull the formfield SupportStatus in:

<!--
   * Set TOPICPARENT = %META{"parent" dontrecurse="on" format="$topic"}%
-->
---+  %FORMFIELD{"SupportStatus" topic="%TOPICPARENT%"}%
This topic's parent is %TOPICPARENT%. the heading above shows the parent's !SupportStatus field.

Live demo:


AnsweredQuestions

This topic's parent is ParentTopicVariable. the heading above shows the parent's SupportStatus field.

-- HaraldJoerg - 10 Jul 2007

Wow. Cool! Thanks Harald; Thanks Crawford.

-- VickiBrown - 12 Jul 2007

 
Change status to:
Topic revision: r3 - 12 Jul 2007 - 16:12:59 - VickiBrown
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback