id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 2780,ShowPath integration into Trac,cmarschalek,Remy Blank,"I'd like to see bread-crumb-navigation for the wiki. I adapted the ShowPath Trac hack (http://trac-hacks.org/wiki/TracShowPathPatch) to 0.9.3. As I'm not very capable with Python, instead of a diff, here's what needs to be changed: == Python Source == The following code needs to be added to ""wiki/web_ui.py"": {{{ prefix = Markup(page.name) heirarchy = prefix.split('/') if len(heirarchy) > 1 or heirarchy[0] != 'WikiStart': req.hdf.setValue('wiki.page_parent.node_count', '%s' % len(heirarchy)) for i in range(len(heirarchy)): req.hdf.setValue('wiki.page_parent.node.%d' % i, heirarchy[i]) }}} Inbetween {{{ req.hdf['wiki.action'] = action req.hdf['wiki.page_name'] = page.name req.hdf['wiki.current_href'] = self.env.href.wiki(page.name) }}} and {{{ return 'wiki.cs', None }}} The linenumber in 0.9.3, for the text above, is 120... == CSS == The wiki template (wiki.cs) hast to be changed too: This line {{{
  • "">Start Page
  • }}} has to be replaced with this {{{
    >> "">Start Page > "">
    }}} The wikinav class has to be defined in the default css too. I hope this simple change can be integrated into trac :) c.marschalek@[-remove-me-]schrack-seconet.com ",enhancement,closed,normal,0.11.2,wiki system,devel,normal,fixed,showpath wiki patch,,,,,