• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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 frown

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

ItemTemplate
Summary Documentation for format in META{"parent" format=...} improved
ReportedBy TWiki:Main.OswaldoRubio
Codebase 4.0.2
SVN Range TWiki-4.1-beta1, Sun, 23 Jul 2006, build 11129
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 12194 12198
TargetRelease minor
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 2007-01-16 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback