Hi,
I looked at the docs & examples but didn't see how I can do what I want.
My requirement is:
I have a layout: main.layout
main.layout has two layouts: head.content, body.content
head.content is decorated w/3 attributes: title, pageCSS, pageJS (all text)
body.content is decorated with 1 attribute: content (jsp)
Syntax guessing isn't working, but makes decent pseudocode.
How can I accomplish this? With the example below, I see:
main.layout.title on the homepage. Uh oh :/
<!-- ======================================================= -->
<!-- Master definition
-->
<!-- ======================================================= -->
<!-- The main layout -->
<definition name="main.layout" template="/tiles/main-layout.jsp">
<put-attribute name="head" value="head.content"/>
<put-attribute name="title" value="test"/>
<put-attribute name="body" value="body.content"/>
<put-attribute name="footer"
value="/res/includes/footer.jsp"/>
<put-attribute name="title" value=""/>
<put-attribute name="pageCSS" value=""/>
<put-attribute name="pageJS" value=""/>
</definition>
<!-- Used by the main layout -->
<definition name="head.content" template="/tiles/head-content.jsp">
<put-attribute name="title" value="main.layout.title">
<put-attribute name="pageCSS" value="main.layout.pageCSS"/>
<put-attribute name="pageJS" value="main.layout.pageJS"/>
</definition>
<!-- Used by the main layout -->
<definition name="body.content" template="/tiles/body-content.jsp">
<put-attribute name="content" value="/index-content.jsp"/>
</definition>
<!-- index page description -->
<definition name="site.index" template="main.layout">
<put-attribute name="title" value="The home page title"/>
<put-attribute name="pageCSS" value="(no css)"/>
<put-attribute name="pageJS" value="(no js)"/>
</definition>
</tiles-definitions>
TIA