You are here: Foswiki>Tasks Web>Item5427 (03 Feb 2009, ArthurClemens)Edit Attach

Item5427: TOC is evaluated too early? when written in a template

pencil
Priority: Normal
Current State: Confirmed
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: TWiki:Main.ArthurClemens
Waiting For:
Last Change By: ArthurClemens
I have a "client team" topic view template, with a number of fixed elements, such as team members, client list and so on. At the top of the contents I have written %TOC%. But this will only list the headers in the view template, not the headers in the actual topic.

-- TWiki:Main/ArthurClemens - 09 Mar 2008

renamed item - I presume this means that TOC is evaluated before the topic TEXT is inserted.

-- SvenDowideit - 11 Mar 2008

Per agreement at TWiki:Codev.GeorgetownReleaseMeeting2008x03x17 downgraded to Normal.

-- TWiki:Main.KennethLavrsen - 17 Mar 2008

I just discovered this bug and note that it has apparently dropped off the table for being addressed. For what it's worth (and certainly so for anyone else to runs up against this bug before it's addressed), there's a simple workaround: don't use the %TEXT% tag in the view template. Use %INCLUDE{%BASEWEB%.%BASETOPIC%}% instead.

-- LynnwoodBrown - 03 Feb 2009

ItemTemplate edit

Summary TOC is evaluated too early? when written in a template
ReportedBy TWiki:Main.ArthurClemens
Codebase
SVN Range TWiki-5.0.0, Wed, 23 Jan 2008, build 16283
AppliesTo Engine
Component
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r5 - 03 Feb 2009, ArthurClemens
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