On 8/29/2010 7:17 AM, KateYoak wrote:
Hi all,I wanted to see if it is possible to edit a template underlying the wiki pages to include a macro, say, [[TOC]] into each page. I found that the template I am looking for is layout.html (though that would change every single page, not just the wiki pages - can I do better?) And I learned that [[TOC]] will display that text verbatim. I browsed through Genshi docs and tried ${TOC()}, but it tells me that TOC us not defined. I have verified that placing [[TOC]] directly into the wiki page works correctly, so it's just a matter of figuring our the right Genshi idiom.
In this case, you'd be better served by using page templates, i.e. pre-filled page content.
See http://trac.edgewall.org/wiki/PageTemplates -- Christian -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
