You are here: Foswiki>Tasks Web>Item11776 (18 Apr 2012, SvenDowideit)Edit Attach
er, and now it looks like i can't escape.

Page 1 of 3330 Next >

%STARTSECTION{"createpopup"}%
   * %ITEMTOPIC% - %IF{
  "istopic '%ITEMTOPIC%'"
  then="is a topic"
  else="not a topic"
}%
   * Set S_ITEMWEB = %IF{"defined ITEMWEB" then="%ITEMWEB%" else="%WEB%"}%
   * Set S_ITEMTOPIC = %IF{"defined ITEMTOPIC" then="%ITEMTOPIC%" else="ThisTopicShouldNotBeThere"}%
      * %S_ITEMWEB% . %S_ITEMTOPIC% %IF{
  "istopic '%S_ITEMWEB%.%S_ITEMTOPIC%'"
  then="is a topic"
  else="not a topic"
}%%ENDSECTION{"createpopup"}%

yup. nothing to see here - just added an unescaped INCLUDE - it almost worked, which makes it even harder to debug :/

-- SvenDowideit - 18 Apr 2012
 

ItemTemplate edit

Summary having issues with a IF and parametarised INCLUDE
ReportedBy SvenDowideit
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r2 - 18 Apr 2012, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy