Changes between Initial Version and Version 3 of Ticket #3536
- Timestamp:
- Jun 22, 2015, 9:40:16 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3536
- Property Owner Noah Kantrowitz deleted
-
Ticket #3536 – Description
initial v3 1 1 Is 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: 2 2 3 ![[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, ...)]] 3 {{{ 4 [[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, ...)]] 5 }}} 4 6 5 7 So 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: 6 8 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 }}} 11 15 12 16 The TOC macro should then be able to transform this page into a TOC. 13 17 14 ![[TOC(MyTocPage)]] 18 {{{ 19 [[TOC(MyTocPage)]] 20 }}} 15 21 16 22 Now, 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.