• 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.

Item7031: Can't show TOC of base topic in an include

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Confirmed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


When you include a topic header, and that header has a TOC that should show the content of the base topic, nothing is shown, even if the topic is explicitly set:

%TOC{ topic="%BASETOPIC%" }%

It seems like TWiki is too aggressive with optimizing: It seems it does not load the topic text in case it is already loaded, but makes a mistake in current topic vs. base topic.

-- TWiki:Main/PeterThoeny - 2012-11-12

Update: Issue only arises if the base topic has a SEARCH that produces delayed INCLUDES that have headings. In that case, TOC in the included topic does not pick up the headings.

Workaround: In the INCLUDE, delay TOC with a CALCULATE, as in:

%CALCULATE{$NOP(%)TOC{ "%BASETOPIC%" title="Table of content:" }$NOP(%)}%

-- TWiki:Main.PeterThoeny - 2012-11-13

Summary Can't show TOC of base topic in an include
ReportedBy TWiki:Main.PeterThoeny

SVN Range TWiki-5.1.3-trunk, Fri, 26 Oct 2012, build 23781
AppliesTo Engine

Priority Normal
CurrentState Confirmed


TargetRelease n/a

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2012-11-13 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback