[Moin-user] "Discuss" subpage feature for MoinMoin 1.5.x

Nir Soffer nirs at freeshell.org
Thu Jul 27 09:43:43 EDT 2006


On 24/07/2006, at 13:51, Jim Wight wrote:

> In editbarItems, replace the line
>
>                 self.actionsMenu(page),]
> with
>                 self.actionsMenu(page),
>                 self.commentLink(page),]

A better way is to override editbarItems in your custom theme and add  
your link(s) where you like:

from MoinMoin.theme import modern

class Theme(modern.Theme):

     def editbarItems(self, page):
         items = modern.Theme.editbarItems(self, page)
         items.append(self.myItem(page))
         return items

     def myItem(self, page):
         """ return your link here """


Best Regards,

Nir Soffer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20060727/f95b18c7/attachment.html>


More information about the Moin-user mailing list