Opened 13 years ago

Last modified 13 years ago

#8467 closed enhancement

Show tags not only on EDIT page — at Initial Version

Reported by: dh1jc Owned by: Alec Thomas
Priority: normal Component: TagsPlugin
Severity: normal Keywords: wiki page
Cc: Ryan J Ollos, Michael Renzmann Trac Release: 0.11

Description

Hi,

I found the tags of a page at the bottom right only on the wiki_edit page. So I changed the code wiki.py to insert the tags not before the "buttons" but behind the wikipage

Index: wiki.py =================================================================== --- wiki.py (revision 9816) +++ wiki.py (working copy) @@ -97,7 +97,7 @@

li.append(tag.li(anchor, ' '))

insert = tag.ul(class_='tags')(tag.li('Tags', class_='header'), li)

  • return stream | Transformer('div[@class="buttons"]').before(insert)

+ return stream | Transformer('div[contains(@class,"wikipage")]').after(insert)

def _update_tags(self, req, page):

tag_system = TagSystem(self.env)

Change History (0)

Note: See TracTickets for help on using tickets.