control display of resource titles in book sections; use book views also in old Loopz skin
This commit is contained in:
parent
4c3848f8db
commit
3c153ce058
3 changed files with 14 additions and 4 deletions
|
@ -59,6 +59,15 @@ textarea {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* elements taken from blueprint (Lobo) skin */
|
||||||
|
.span-1, .span-2, .span-3, .span-4, .span-5, .span-6 {float: left;}
|
||||||
|
.span-1 {width: 105px;}
|
||||||
|
.span-2 {width: 230px;}
|
||||||
|
.span-3 {width: 355px;}
|
||||||
|
.span-4 {width: 480px;}
|
||||||
|
.span-5 {width: 605px;}
|
||||||
|
.span-6 {width: 730px;}
|
||||||
|
|
||||||
table.listing {
|
table.listing {
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
|
|
|
@ -130,7 +130,8 @@ class Base(object):
|
||||||
return IOptions(adapted(dt))(name)
|
return IOptions(adapted(dt))(name)
|
||||||
|
|
||||||
def getTitleForResource(self, r):
|
def getTitleForResource(self, r):
|
||||||
if self.getOptionsForResource(r, 'showtitle'):
|
if (IOptions(adapted(r.context.resourceType))('show_title_in_section') or
|
||||||
|
self.getOptionsForResource(r, 'show_title_in_section')):
|
||||||
return r.title
|
return r.title
|
||||||
|
|
||||||
def getIconForResource(self, r):
|
def getIconForResource(self, r):
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<zope:adapter
|
<zope:adapter
|
||||||
name="book_overview"
|
name="book_overview"
|
||||||
for="loops.interfaces.IConcept
|
for="loops.interfaces.IConcept
|
||||||
loops.browser.skin.Lobo"
|
zope.publisher.interfaces.browser.IBrowserRequest"
|
||||||
provides="zope.interface.Interface"
|
provides="zope.interface.Interface"
|
||||||
factory="loops.compound.book.browser.BookView"
|
factory="loops.compound.book.browser.BookView"
|
||||||
permission="zope.View" />
|
permission="zope.View" />
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
<zope:adapter
|
<zope:adapter
|
||||||
name="section_view"
|
name="section_view"
|
||||||
for="loops.interfaces.IConcept
|
for="loops.interfaces.IConcept
|
||||||
loops.browser.skin.Lobo"
|
zope.publisher.interfaces.browser.IBrowserRequest"
|
||||||
provides="zope.interface.Interface"
|
provides="zope.interface.Interface"
|
||||||
factory="loops.compound.book.browser.SectionView"
|
factory="loops.compound.book.browser.SectionView"
|
||||||
permission="zope.View" />
|
permission="zope.View" />
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
<zope:adapter
|
<zope:adapter
|
||||||
name="book_topic_view"
|
name="book_topic_view"
|
||||||
for="loops.interfaces.IConcept
|
for="loops.interfaces.IConcept
|
||||||
loops.browser.skin.Lobo"
|
zope.publisher.interfaces.browser.IBrowserRequest"
|
||||||
provides="zope.interface.Interface"
|
provides="zope.interface.Interface"
|
||||||
factory="loops.compound.book.browser.TopicView"
|
factory="loops.compound.book.browser.TopicView"
|
||||||
permission="zope.View" />
|
permission="zope.View" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue