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 - 2007-07-12 - VickiBrown
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.