Changes between Initial Version and Version 3 of Ticket #3536


Ignore:
Timestamp:
Jun 22, 2015, 9:40:16 PM (9 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3536

    • Property Owner Noah Kantrowitz deleted
  • Ticket #3536 – Description

    initial v3  
    11Is there any simple way to generate the TOC for a set of pages from another page? Right now I can generate a TOC for a set of pages as:
    22
    3 ![[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, ...)]]
     3{{{
     4[[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, ...)]]
     5}}}
    46
    57So to show my custom TOC on every subpage, I have to insert it multiple times. Of course, if the TOC changes, I have to adjust it on all subpages, which is a whole lot of work! If the TOC could be generated from a particular page, all I had to do was to generate a page like this:
    68
    7 ![TracGuide Trac Guide]
    8 ![TracInstall Installing Trac]
    9 ![TracUpgrade Upgrading Trac]
    10 ![TracIni Trac Ini]
     9{{{
     10[TracGuide Trac Guide]
     11[TracInstall Installing Trac]
     12[TracUpgrade Upgrading Trac]
     13[TracIni Trac Ini]
     14}}}
    1115
    1216The TOC macro should then be able to transform this page into a TOC.
    1317
    14 ![[TOC(MyTocPage)]]
     18{{{
     19[[TOC(MyTocPage)]]
     20}}}
    1521
    1622Now, if the TOC changes, all I have to do is to adjust the MyTocPage and the new TOC will be applied automatically to every page that includes the macro.