add new document type 'tip'
This commit is contained in:
parent
766120d5ce
commit
f30e7d1698
3 changed files with 15 additions and 1 deletions
|
@ -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'
|
||||
|
|
|
@ -75,6 +75,14 @@
|
|||
factory="loops.compound.book.browser.Story"
|
||||
permission="zope.View" />
|
||||
|
||||
<zope:adapter
|
||||
name="lobo_tip"
|
||||
for="loops.compound.book.interfaces.IPage
|
||||
loops.browser.skin.Lobo"
|
||||
provides="zope.interface.Interface"
|
||||
factory="loops.compound.book.browser.Tip"
|
||||
permission="zope.View" />
|
||||
|
||||
<zope:adapter
|
||||
name="lobo_usecase"
|
||||
for="loops.compound.book.interfaces.IPage
|
||||
|
|
|
@ -24,6 +24,7 @@ concept(u'textelement', u'Textabschnitt', u'documenttype')
|
|||
concept(u'textelement2', u'Textabschnitt separat', u'documenttype')
|
||||
concept(u'quote', u'Zitat', u'documenttype')
|
||||
concept(u'story', u'Geschichte', u'documenttype')
|
||||
concept(u'tip', u'Tipp', u'documenttype')
|
||||
concept(u'usecase', u'Fallbeispiel', u'documenttype')
|
||||
|
||||
# book structure
|
||||
|
|
Loading…
Add table
Reference in a new issue