PageOutline macro always renders the outline of WikiStart through getPageHTML()
|Reported by:||anonymous||Owned by:||athomas|
|Cc:||ghama, thijs||Trac Release:||0.10|
This problem comes from missing page name information that is used in method render_macro.
I apply below modification to my local enviornment:
def getPageHTML(self, req, pagename, version=None): """ Return page in rendered HTML, latest version. """ text = self.getPage(req, pagename, version) + req.args['page'] = pagename html = wiki_to_html(text, self.env, req, absurls=1) return '<html><body>%s</body></html>' % html
I know it's very dirty hack, but I have no idea to solve this problem in more elegant manner now.
Change History (5)
comment:3 follow-up: ↓ 4 Changed 5 years ago by thijs
- Cc thijs added
- Priority changed from low to lowest