NIHVIVO-1389 NIHVIVO-1407 NIHVIVO-1437 Significant refactoring of templates both in vitro core and vivo themes to ensure consistent markup with 3 different base templates at play (page.ftl, basicPage.jsp and formPrefix/formSuffix.jsp) Resulted in creating smaller component freemarker templates that could be included by all of the base templates, whether ftl or jsp. This is a temporary compromise while we continue our conversion to Freemarker. The goal was to keep jsp files outside of the theme and working behind the scenes.
This commit is contained in:
parent
1126d6f75d
commit
9892846244
7 changed files with 212 additions and 144 deletions
|
@ -36,10 +36,11 @@ public class FreemarkerComponentGenerator extends FreemarkerHttpServlet {
|
|||
Map<String, Object> root = getSharedVariables(vreq, new HashMap<String, Object>());
|
||||
root.putAll(getPageTemplateValues(vreq));
|
||||
|
||||
request.setAttribute("ftl_head", get("head", root, config, vreq));
|
||||
request.setAttribute("ftl_identity", get("identity", root, config, vreq));
|
||||
request.setAttribute("ftl_menu", get("menu", root, config, vreq));
|
||||
request.setAttribute("ftl_stylesheets", get("stylesheets", root, config, vreq));
|
||||
request.setAttribute("ftl_headScripts", get("headScripts", root, config, vreq));
|
||||
request.setAttribute("ftl_menu", get("menu", root, config, vreq));
|
||||
request.setAttribute("ftl_search", get("search", root, config, vreq));
|
||||
request.setAttribute("ftl_footer", get("footer", root, config, vreq));
|
||||
request.setAttribute("ftl_googleAnalytics", get("googleAnalytics", root, config, vreq));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue