diff --git a/compound/book/browser.py b/compound/book/browser.py index 6b55e5f..d71a89a 100644 --- a/compound/book/browser.py +++ b/compound/book/browser.py @@ -150,7 +150,7 @@ class PageLayout(Base, standard.Layout): def getParts(self): parts = ['headline', 'keyquestions', 'quote', 'maintext', - 'story', 'usecase'] + 'story', 'tip', 'usecase'] return self.getPartViews(parts) @@ -191,6 +191,11 @@ class Story(PagePart, standard.BasePart): partName = 'story' +class Tip(PagePart, standard.BasePart): + + partName = 'tip' + + class UseCase(PagePart, standard.BasePart): partName = 'usecase' diff --git a/compound/book/configure.zcml b/compound/book/configure.zcml index 9c5a628..4ff408f 100644 --- a/compound/book/configure.zcml +++ b/compound/book/configure.zcml @@ -75,6 +75,14 @@ factory="loops.compound.book.browser.Story" permission="zope.View" /> + +