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
--
VickiBrown - 10 Jul 2007
Answer
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:
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