Ticket #295 (closed defect: fixed)
Other Macros inside TOC Page are not rendered
| Reported by: | trachacks@… | Owned by: | moschny |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | trac.tracnav | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I like your Plugin, very nice :)
But I want to add the ChildNav Plugin inside the TracNav TOC Page.
http://trac-hacks.org/wiki/ChildNavPlugin
[[ChildNav(...)]]
At the moment that's not working. Could you please implement that other macros are renderd :)
Attachments
Change History
comment:2 Changed 5 years ago by anonymous
Ok I checked out revision 3267.
I wrote:
[[TracNav(TracNav/TOC|allowed_macros=ChildNav)]]
And I get:
Error: Macro TracNav(TracNav/TOC|allowed_macros=ChildNav) failed __init__() takes exactly 3 arguments (2 given)
Have I done something wrong?
I restarted the apache and deleted all previous pyc and py files of tracnav.
comment:3 follow-up: ↓ 4 Changed 5 years ago by trachacks@…
When I grep in Revision 3267 for allowed_macros there is nothing found??? Are you sure it's there? I checked out from: http://svn.ipd.uka.de/repos/javaparty/JP/trac/plugins/tracnav/
And did python setup.py install
Still the same Error as in comment2
comment:4 in reply to: ↑ 3 Changed 5 years ago by moschny
Replying to trachacks@gruenewaldt.net:
When I grep in Revision 3267 for allowed_macros there is nothing found??? Are you sure it's there? I checked out from: http://svn.ipd.uka.de/repos/javaparty/JP/trac/plugins/tracnav/
Wrong location: http://svn.ipd.uka.de/repos/javaparty/JP/trac/plugins/tracnav-0.11
Or are you using Trac 0.10?

In [3266], I made the list of macros that are rendered configurable. Could you please try with that (or a later) version, using this syntax:
Note though, that only lines starting with an asterisk are considered at all while processing the toc. I'm a bit undecided yet how to generally handle that problem.