provide special part e.g. for start pages
This commit is contained in:
parent
739f309ab7
commit
a51e8e3f19
3 changed files with 25 additions and 0 deletions
|
@ -39,6 +39,14 @@
|
|||
factory="loops.browser.lobo.standard.List1"
|
||||
permission="zope.View" />
|
||||
|
||||
<zope:adapter
|
||||
name="lobo_l3"
|
||||
for="loops.interfaces.IConcept
|
||||
loops.browser.skin.Lobo"
|
||||
provides="zope.interface.Interface"
|
||||
factory="loops.browser.lobo.standard.List3"
|
||||
permission="zope.View" />
|
||||
|
||||
<zope:adapter
|
||||
name="lobo_l2"
|
||||
for="loops.interfaces.IConcept
|
||||
|
|
|
@ -43,6 +43,16 @@
|
|||
</metal:block>
|
||||
|
||||
|
||||
<metal:block define-macro="list3">
|
||||
<tal:cell repeat="cell part/getChildren">
|
||||
<div tal:condition="cell/img"
|
||||
tal:attributes="class python:cell.cssClass[0]">
|
||||
<metal:image use-macro="item/macros/image" />
|
||||
</div>
|
||||
</tal:cell>
|
||||
</metal:block>
|
||||
|
||||
|
||||
<metal:block define-macro="header">
|
||||
<div tal:define="cell part/getView">
|
||||
<metal:headline use-macro="item/macros/headline" />
|
||||
|
|
|
@ -246,6 +246,13 @@ class List2(BasePart):
|
|||
gridPattern = [['span-4 clear', 'span-2 last']]
|
||||
|
||||
|
||||
class List3(BasePart):
|
||||
|
||||
macroName = 'list3'
|
||||
imageSize = 'large'
|
||||
gridPattern = [['span-6 clear']]
|
||||
|
||||
|
||||
class Header0(BasePart):
|
||||
|
||||
macroName = 'header'
|
||||
|
|
Loading…
Add table
Reference in a new issue