use options or type options for parts specification (instead of url-encoded view name parameters)
This commit is contained in:
parent
9a48f13865
commit
824c7606ad
2 changed files with 6 additions and 2 deletions
|
@ -133,7 +133,11 @@ class Layout(Base):
|
||||||
|
|
||||||
def getParts(self):
|
def getParts(self):
|
||||||
result = []
|
result = []
|
||||||
parts = (self.params.get('parts') or ['h1,g3'])[0].split(',')
|
parts = (self.params.get('parts') or [''])[0].split(',') # obsolete
|
||||||
|
if not parts or not parts[0]:
|
||||||
|
parts = (self.options('parts') or
|
||||||
|
self.typeOptions('parts') or
|
||||||
|
['h1', 'g3'])
|
||||||
for p in parts:
|
for p in parts:
|
||||||
viewName = 'lobo_' + p
|
viewName = 'lobo_' + p
|
||||||
view = component.queryMultiAdapter((self.context, self.request),
|
view = component.queryMultiAdapter((self.context, self.request),
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* positioning of page elements */
|
/* positioning of page sections */
|
||||||
|
|
||||||
#portlets {
|
#portlets {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
|
Loading…
Add table
Reference in a new issue