SID-00890: 2 different TOC in one topic
| Status: |
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
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.