From 392cdc25e6714fb89fc23d0d2fb2b4cd400a3ad2 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Mon, 20 Nov 2017 12:41:46 +0000 Subject: [PATCH] Improved: Hardcoded stylesheets and javascript resources (OFBIZ-) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'HtmlHead.ftl' file of the cmssite component contains following hardcoded style sheet and javascript resources: •/images/fieldlookup.js •/images/selectall.js •/images/ecommain.css •/ecommerce/images/blog.css •/content/images/contentForum.css Thanks: Pierre Smits, Anil and Swapnil git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1815798 13f79535-47bb-0310-9956-ffa450edef68 --- cmssite/data/CmsSiteDemoData.xml | 20 ++++++++++++++++++++ cmssite/template/cms/HtmlHead.ftl | 15 +++++++++------ 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/cmssite/data/CmsSiteDemoData.xml b/cmssite/data/CmsSiteDemoData.xml index 80627c5e2..d8cff43db 100644 --- a/cmssite/data/CmsSiteDemoData.xml +++ b/cmssite/data/CmsSiteDemoData.xml @@ -41,6 +41,26 @@ under the License. + + + + + + + + + + + + + + + + + + + + ${(decoratedContent.subcontent.title.render)!"CMS Site Generic Title (Set subcontent 'title' on your content!)"} - - - - - - + <#assign nothing = thisContent.setSortOrder("caSequenceNum")/> + <#assign nothing = thisContent.setMapKeyFilter("js")/> + <#list thisContent.subcontent_all as content> + + + <#assign nothing = thisContent.setMapKeyFilter("css")/> + <#list thisContent.subcontent_all as content> + +