Another GlobalDecorator Suggestion

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Another GlobalDecorator Suggestion

Adrian Crum
All of this code:

<section>
   <condition>
     <if-empty field-name="applicationMenuName"/>
   </condition>
   <widgets>
     <platform-specific><html><html-template
location="${appheaderTemplate}"/></html></platform-specific>
   </widgets>
   <fail-widgets>
     <label style="apptitle">${applicationTitle}</label>
     <include-menu name="${applicationMenuName}"
location="${applicationMenuLocation}"/>
   </fail-widgets>
</section>

can be replaced with one line:

<decorator-section-include name="app-header"/>

Instead of trying to get the GlobalDecorator to figure out what the component is
sending it, just have the component's decorator deal with its own app header issues.