[
https://issues.apache.org/jira/browse/OFBIZ-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470169
]
Adrian Crum commented on OFBIZ-685:
-----------------------------------
I have been trying to define the line between widgets/bsh scripts and
template(ftl) files to help explain this mod. The closest thing I can describe
is: URLs within templates should always be variables. Those variables can be
declared in bsh scripts, or widgets, or whatever. The templates then evaluate
the variables to output the correct markup.
In other words, templates = HTML markup less content.
This patch removes content from templates.
> Move hard-coded UI layout code from header.ftl to the global decorator
> ----------------------------------------------------------------------
>
> Key: OFBIZ-685
> URL: https://issues.apache.org/jira/browse/OFBIZ-685
> Project: OFBiz (The Open for Business Project)
> Issue Type: Improvement
> Reporter: Adrian Crum
> Priority: Minor
> Attachments: layoutsettings.patch, layoutsettings.patch
>
>
> This patch improves upon the (old) Jira 174 issue of having a single file to
> control UI layout. Layout properties in
> framework/common/webcommon/includes/header.ftl have been moved to
> framework/common/widget/CommonScreens.xml.
> Advantages:
> 1. A new user wanting to modify the UI layout needs to change only one file
> (the Global Decorator in CommonScreens.xml).
> 2. Components can now take their java scripts out of template (ftl) files and
> put them into separate files that are loaded via the component decorator and
> the layoutSettings map.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.