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

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:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-07-12 - 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.