id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
10638,Create "Table of Contents" based on URL,tsari,osimons,The existing TOC macro (TocMacro) uses the headline (h1 to h6) to create the table of contents. This results in a very confusing toc structure_ because a headline h1 on a page on the 3rd level will be displayed on the first level of the toc.\r\n\r\nPage structure with used headlines on the page:\r\n\r\n{{{\r\npage1(h3)/page2(h4)/page3(h2)\r\n         /page2(h4)/page4\r\n                   /page4(h1)/page5(h1)\r\n}}}\r\n\r\nResulting TOC from the existing macro:\r\n{{{\r\n            page1 h3\r\n                page2 h4\r\n        page3 h2\r\n    page4 h1\r\n    page5 h1\r\n}}}\r\n\r\nMy planns for an improved macro are to focus the toc creation on the url. So the resulting TOC should look likes this.\r\n\r\n{{{\r\n    page1 h3\r\n        page2 h4\r\n            page3 h2\r\n            page4 h1\r\n                page5 h1\r\n}}}\r\n\r\nSo what should the macro do?\r\n\r\n - create the toc structure based on the url structure[[BR]]\r\n - use the first headline on each page as text for the toc entry[[BR]]\r\n - allow the user to specify the depth of the toc[[BR]]\r\n\r\nThanks for your help,enhancement,new,normal,TocMacro,normal,,,,0.12
