Hi,
am using Magnolia 5.4.3 and trying to take utilise the documented nested areas
capability, but having zero luck. Cant seem to find an example in the samples,
so any help appreciated.
so What am I trying to do?
I have dashboard page using bootstrap for responsiveness, with a set of
components. the components can be styled as 1 per row or 2 per row.
for simplicity all components are currently the same type (dashboardComponent)
so I want to create a set of optional areas inside the main area, which can
take one wide or two wide components.
I have created a YAML definition (see below
This looks to follow the documentation, but when I go to the editor, I cant
"Add an Area". should I have something specific in the mainSection as an ftl to
render the area, or hav I just misunderstood how nested areas should work.
Any help appreciated.
PP
templateScript: /mytest-templating-kit/templates/pages/dashboard.ftl
renderType: freemarker
visible: true
title: mytest Dashboard template
areas:
mainSection:
type: list
editable: true
areas:
twoColumnArea:
optional: true
type: list
templateScript:
/mytest-templating-kit/templates/pages/areas/twoColumnArea.ftl
editable: true
availableComponents:
dashboard:
id: mytest-components:components/dashboard
oneColumnArea:
optional: true
templateScript:
/mytest-templating-kit/templates/pages/areas/oneColumnArea.ftl
type: list
availableComponents:
dashboard:
id: mytest-components:components/dashboard
standardScripts:
renderType: freemarker
templateScript:
/mytest-templating-kit/templates/pages/areas/standardScripts.ftl
editable: false
visible: true
htmlHeader:
type: noComponent
renderType: freemarker
templateScript: /mytest-templating-kit/templates/pages/areas/htmlHeader.ftl
editable: false
visible: true
applicationHeader:
type: single
autoGeneration:
content:
myHeader:
nodeType: mgnl:component
templateId: mytestModule:components/headerComponent
generatorClass: info.magnolia.rendering.generator.CopyGenerator
editable: false
visible: true
applicationFooter:
type: noComponent
renderType: freemarker
templateScript:
/mytest-templating-kit/templates/pages/areas/applicationFooter.ftl
editable: false
visible: true
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=7a5166fe-f02c-46b9-a381-75efb6ef9de9
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------