From: Rick S. <ric...@ch...> - 2008-08-09 18:58:24
|
Great idea. How about adding the ability to specify the starting level (we can already specify the depth)? So this page..... ! level 1 !! level 2 {maketoc start=3, maxdepth=4} !!! level 3 !!!! level 4 !!!!! level 5 would produce....: Contents - Level 3 - Level 4 Just need some basic error checking to ensure that maxdepth => start. -R --- Greetings from Sanford, NC, USA! ----- Original Message ----- From: Mike Kerr To: 'Tikiwiki developers' Sent: Saturday, August 09, 2008 2:20 AM Subject: [Tikiwiki-devel] Thoughts on {maketoc} behaviour I was just thinking. Many people use !Page Title {maketoc} !!Sub-heading Blahblah !!Sub-heading2 Blah. as a standard template. I've always thought that this wasted a layer of headings. Would a more logical approach to {maketoc} processing be to ignore any ! markup before {maketoc} appears? This way you can still take advantage of the heading formatting for the text, but you also save an entire heading hierarchy. Not to mention you don't end up clicking on the link and going backwards for the first heading. I can probably make this an option like {maketoc|ignoreprev} or {maketoc|-} or something. Any thoughts on this? Would that break anything outside of a specific page? (eg. The Tiki book using structures) Mike. |