You are here: Foswiki>Tasks Web>Item11314 (01 Nov 2019, MichaelDaum)Edit Attach

Item11314: Template comment tags don't suppress contained SECTION macros

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiTemplates
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: MichaelDaum
%{
user topic has a formfield of the form ''

I wonder if the widgets should be in their own web?

%STARTSECTION{"widget-title"}%Dashboard Contrib Help%ENDSECTION{"widget-title"}%
%STARTSECTION{"widget"}%the drag and drop functionality is currently not persistent, 
but you can set what widgets to show using the =WIDGETSCOLUMN1=, =WIDGETSCOLUMN2=, =WIDGETSCOLUMN3= settings.

for example, I set the following in my 'personal settings' on my topic to show my details only if the topic is not viewed by me:


   * <nop>Local WIDGETSCOLUMN1 = %<nop>IF{"$WIKINAME != 'SvenDowideit'" then="WikiApps.PersonalInfoWidget,"}%WikiApps.MyFeaturesWidget

%ENDSECTION{"widget"}%

}%

causes the text inside the named SECTIONS to be appended to the output - even though (imo) they are within a tmpl comment and so should be gone.

-- SvenDowideit - 30 Nov 2011

 

ItemTemplate edit

Summary Template comment tags don't suppress contained SECTION macros
ReportedBy SvenDowideit
Codebase 1.1.4 RC1
SVN Range
AppliesTo Engine
Component FoswikiTemplates
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r4 - 01 Nov 2019, MichaelDaum
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