This question about Topic Markup Language and applications: Task filed

TOC not finding headings in ViewTemplate

I have an auto view template for displaying some form-based info. This view template has headings (H2 level).

I want the at the top of the page, so it is not actually part of the %TOPIC but its placed in the view template. The downside is that i only get the headings from the view template expanded into the table of contents. I ideally want to have the headings from teh topic text also expanded into the view template's table of contents.

-- JimParker - 14 Jun 2012

This is a known bug (see Tasks.Item2317 ). As noted in that topic, a simple workaround is to use this in the view template:
%TOC{"%BASETOPIC%" web="%BASEWEB%"}%
%INCLUDE{%BASEWEB%.%BASETOPIC%}%

Using this format, the table of contents will include any headings in both the view template and the base topic.

-- LynnwoodBrown - 27 Jun 2012
 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 1.1.5
Status Task filed
Related Topics Question306
Topic revision: r2 - 27 Jun 2012, LynnwoodBrown
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