Tags:
create new tag
view all tags

SID-00890: 2 different TOC in one topic

Status: Answered Answered TWiki version: 4.0.0 Perl version: 5.005
Category: CategoryAPI Server OS: Windows Last update: 16 years ago

I want to have TWO (or more..) different and independent Tabel of contents in ONE single topic. So i want to have 2 "something-like-sections" in my topic, for which i want to create independent TOCs that don't contain the headings of the other section.

Example:

BLOCK_1{

1st heading

...

n-th heading

}

BLOCK_2{

(n+1)-th heading

...

m-th heading

}

This shall create TWO (!) different

s in ONE SINGLE TOPIC looking like:

TOC_One for my BLOCK_1

<1st heading

<2nd heading

...

<n-th heading

and TOC_Two for my BLOCK_2

<(n+1)th heading

<(n+)th heading

...

<m-th heading

thanks!

-- TWikiGuest - 2010-07-08

Discussion and Answer

Not directly possible. You can put those two blocks in named sections (STARTSECTION ... ENDSECTION), create two helper topics that INCLUDE each section, then in another topic place two TOCs, each pointing to a helper topic.

See VarSTARTSECTION, VarENDSECTION, VarINCLUDE, IncludeTopicsAndWebPages, VarTOC2.

-- PeterThoeny - 2010-07-09

Thanks, I'm gonna give it a try!

-- TWikiGuest - 2010-07-12

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title 2 different TOC in one topic
SupportCategory CategoryAPI
TWiki version 4.0.0
Server OS Windows
Web server IE
Perl version 5.005
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010-07-12 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.