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