Hello, I want to hide the wiki-ctxtnav from anonymous users on my page. As far as I have seen so far, there is no current way to do this, unless MenusPlugin provides some way for that. But I have found no way to refer to ctxtnav entries in the trac.ini, since add_ctxtnav doesn't require a name for the entries, just a label and a link and a title.
Now, there are several options that functionality can be added. I could write a Filter Plugin, that removes any cntxnav entries under certain conditions. I could add a javascript, that looks at the page structure and then does the required adjustments, (a pretty ugly hack, don't need to say that I guess). A new permission could be added, that is checked for in _wiki_cntxnav in wiki/web_ui.py Or just a new wiki config option anonymous_hide_ctxtnav could be introduced, that is checked for in _wiki_cntxnav in wiki/web_ui.py together with the login state Now, if it is just me who wants that possibilty, I should write that plugin or that script. But if more people would want to hide from regular visitors, that the site is actually a wiki, the it should be done in the wiki code itself. In that case it would probably also be nice to be able to configure the wiki root path that triggers the WikiModule handler to something else but */wiki, haven't looked whether that requires more changes than a configurable regex in match_request in wiki/web_ui.py. But changes in the Wiki-Link code are likely. Regards Jan Schukat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" 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-dev?hl=en -~----------~----~----~----~------~----~------~--~---
