so if you have an information header that you INCLUDE into a topic, that tries to do an IF based on the form fields of the BASETOPIC, it fails - form.name appears to be the formname of the INCLUDEd topic.
%<nop>IF{"form.name~'*IsoManageMetaTemplate' AND fields[name='ApprovedRevision']" then="%REVINFO{'$rev'}%"}%
I still need to confirm this is always true - at this point, I am INCLUDING from a view templat, but even then its problematic.
--
TWiki:Main/SvenDowideit - 21 May 2008
this leads to shenanigins like
%REVINFO{"$rev" topic="%FORMFIELD{"EditDocument" format="%BASEWEB%.%BASETOPIC%" topic="%BASEWEB%.%BASETOPIC%"}%%FORMFIELD{"ApprovedDocument" topic="%BASEWEB%.%BASETOPIC%" default="%BASEWEB%.%BASETOPIC%"}%"}%
--
TWiki:Main.SvenDowideit - 21 May 2008
An otherwise unqualified name is evaluated in the context of the meta-data object of the "current" topic. If the "topic" field in the meta-data were modified when a topic was included, I might have expected this. AFAIK, though, the stack for included topic names is local to the TWiki instance, so i don't know how this could happen.
Do you have a testcase?
--
TWiki:Main.CrawfordCurrie - 28 Jul 2008