Is possible to get a field value from a parent topic from this way??
%FORMFIELD{"NumeroProyecto" topic="DptoID.%META{"parent" dontrecurse="on"}%" default="(not set)" }%
--
TWiki:Main.OswaldoRubio
It should be, yes. This should show the SVN Range from
Item2764 (TWiki-4.1-beta1, Mon, 24 Jul 2006, build 11161)
Try %FORMFIELD{"SVN Range" topic="Bugs.Item2564" }% : Thu, 29 Jun 2006 build 10750
Try %FORMFIELD{"SVN Range" }% : TWiki-4.1-beta1, Sun, 23 Jul 2006, build 11129
So I guess the problem is with %META{"parent" dontrecurse="on"}%. My guess is it's returning the
expanded field value i.e. the link, not the base topic name.
Try a
format
%META{"parent" dontrecurse="on" format="$web.$topic"}%: Bugs.Item2764
%FORMFIELD{"SVN Range" topic="%META{"parent" dontrecurse="on" format="$topic"}%" default="(not set)" }% :
TWiki-4.1-beta1, Mon, 24 Jul 2006, build 11161
OK, that clearly works. Dropping this to Normal, since there is clearly a way to achieve what is required, though the documentation stinks.
CC
I can't seem to find the reported "stinking" doc regarding getting a formfield value from a parent (either by following my nose or more traditional methods). Does anyone know what docs this is suppose to refer to? If someone can point it out, i'll be glad to revise.
I
did notice that there is no mention of a
format
attribute for the
parent
parameter in
TWiki:TWiki4.VarMETA
. Does this need to be added?
LB
That's exactly the problem. It stinks because it doesn't exist
CC
MD fixed in in SVN 10007 and it was added to 4.0.3
I have made a small doc improvement so it is clear that $web and $topic are the two variables that are expanded in the format string.
Also changed the title of this bug item to be more descriptive for the release note.
KJL
4.1.0 released
KJL