Modify

Ticket #295 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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:1 Changed 5 years ago by moschny

  • Status changed from new to assigned

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:

  [[TracNav(TOC1|TOC2|allowed_macros=ChildNav,Image,...)]]

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.

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?

comment:5 Changed 5 years ago by trachacks@…

  • Status changed from assigned to closed
  • Resolution set to fixed

I am using 0.11 and with the correct url it works.

Thanks a lot :)

I thing the URL to the correct subversion repo for 0.11 isn't linked very good from the pluginspage.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.