blob: ec6cc57b430f7ef590b908a4dcc9d6e805c9b620 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd">
<screen name="main-decorator">
<section>
<actions>
<!-- base/top/specific map first, then more common map added for shared labels -->
<property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<set field="MainColumnStyle" value="nocolumns" global="true"/>
<!-- The default (global) shortcut icon -->
<set field="layoutSettings.shortcutIcon" value="/images/ofbiz.ico" global="true"/>
<!-- The default (main) java scripts -->
<!-- NOTE: this should be included on each screen that uses it to avoid including it in all screens: -->
<set field="layoutSettings.javaScripts[+0]" value="/images/fieldlookup.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/selectall.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/calendar1.js" global="true"/>
<set field="layoutSettings.extraHead" value="&lt;link rel=&quot;stylesheet&quot; href=&quot;/content/images/contentForum.css&quot; type=&quot;text/css&quot;/&gt;" global="true"/>
<script location="component://ecommerce/widget/EcommerceSetup.bsh"/>
<!-- The default (main) stylesheets -->
<set field="layoutSettings.styleSheets[+0]" value="/ecommerce/images/blog.css" global="true"/>
<set field="layoutSettings.styleSheets[+0]" value="${productStore.styleSheet}" default-value="/images/ecommain.css" global="true"/>
</actions>
<widgets>
<!-- render header -->
<platform-specific><html><html-template location="component://ecommerce/webapp/ecommerce/includes/header.ftl"/></html></platform-specific>
<container id="ecom-mainarea">
<!-- by default will render left-bar only if left/rightbarScreenName value not empty -->
<include-screen name="${leftbarScreenName}" location="${leftbarScreenLocation}"/>
<include-screen name="${rightbarScreenName}" location="${rightbarScreenLocation}"/>
<container style="${MainColumnStyle}">
<!-- render messages -->
<platform-specific><html><html-template location="component://common/webcommon/includes/messages.ftl"/></html></platform-specific>
<decorator-section-include name="body"/>
</container>
<container style="endcolumns"/>
</container>
<!-- render footer -->
<platform-specific><html><html-template location="component://ecommerce/webapp/ecommerce/includes/footer.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<!-- Side Columns -->
<screen name="leftbar">
<section>
<widgets>
<container style="left">
<include-screen name="choosecatalog" location="component://ecommerce/widget/CatalogScreens.xml"/>
<include-screen name="keywordsearchbox" location="component://ecommerce/widget/CatalogScreens.xml"/>
<include-screen name="sidedeepcategory" location="component://ecommerce/widget/CatalogScreens.xml"/>
<include-screen name="minireorderprods" location="component://ecommerce/widget/CatalogScreens.xml"/>
<include-screen name="minipoll" location="component://ecommerce/widget/ContentScreens.xml"/>
<include-screen name="forums" location="component://ecommerce/widget/ForumScreens.xml"/>
<include-screen name="content_categories" location="component://ecommerce/widget/ContentScreens.xml"/>
<include-screen name="blogs" location="component://ecommerce/widget/blog/BlogScreens.xml"/>
</container>
</widgets>
</section>
</screen>
<screen name="rightbar">
<section>
<widgets>
<container style="right">
<include-screen name="language"/>
<include-screen name="minicart" location="component://ecommerce/widget/CartScreens.xml"/>
<include-screen name="minipromotext" location="component://ecommerce/widget/CartScreens.xml"/>
<include-screen name="miniassocprods" location="component://ecommerce/widget/CatalogScreens.xml"/>
<include-screen name="factoids" location="component://ecommerce/widget/ContentScreens.xml"/>
<include-screen name="minilastviewedcategories" location="component://ecommerce/widget/CatalogScreens.xml"/>
<include-screen name="minilastviewedproducts" location="component://ecommerce/widget/CatalogScreens.xml"/>
<include-screen name="minilastproductsearches" location="component://ecommerce/widget/CatalogScreens.xml"/>
<include-screen name="recentlyviewed" location="component://ecommerce/widget/ContentScreens.xml"/>
</container>
</widgets>
</section>
</screen>
<!-- Common Decorators -->
<screen name="CommonEmptyDecorator">
<section>
<actions>
<set field="MainColumnStyle" value="center"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonLeftDecorator">
<section>
<actions>
<set field="leftbarScreenName" value="leftbar"/>
<set field="MainColumnStyle" value="center"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonRightDecorator">
<section>
<actions>
<set field="rightbarScreenName" value="rightbar"/>
<set field="MainColumnStyle" value="center"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonLeftRightDecorator">
<section>
<actions>
<set field="leftbarScreenName" value="leftbar"/>
<set field="rightbarScreenName" value="rightbar"/>
<set field="MainColumnStyle" value="center"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- forum decorator? -->
<screen name="commonForumDecorator">
<section>
<actions>
<set field="leftbarScreenName" value="leftbar"/>
<set field="rightbarScreenName" value="rightbar"/>
<set field="MainColumnStyle" value="center"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.${titleProperty}}"></label>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- Column Included Screens -->
<screen name="language">
<section>
<widgets>
<platform-specific><html><html-template location="component://ecommerce/webapp/ecommerce/includes/language.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<!-- Top Level Screens -->
<screen name="main">
<section>
<actions>
<set field="leftbarScreenName" value="leftbar"/>
<set field="rightbarScreenName" value="rightbar"/>
<set field="MainColumnStyle" value="center"/>
<set field="titleProperty" value="PageTitleMain"/>
<set field="headerItem" value="main"/>
<set field="randomSurveyGroup" value="testSurveyGroup"/>
<script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/main.bsh"/>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/category.bsh"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://ecommerce/webapp/ecommerce/main.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="login">
<section>
<actions>
<set field="titleProperty" value="PageTitleLogin"/>
<set field="headerItem" value="login"/>
<script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/login.bsh"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://ecommerce/webapp/ecommerce/login.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="responseTreeLine">
<section>
<actions>
<service service-name="getPublicForumMessage" result-map-name="contentData">
<field-map field-name="contentId" env-name="rsp.contentId"/>
</service>
<set field="textData" from-field="contentData.resultData.electronicText.textData"/>
</actions>
<widgets>
<section>
<condition>
<if-compare-field field-name="responseContentId" operator="equals" to-field-name="rsp.contentId" />
</condition>
<widgets>
<container style="responseSelected">
<container style="responsetext">
<platform-specific><html><html-template location="component://ecommerce/webapp/ecommerce/forum/messageDisplay.ftl"/></html></platform-specific>
</container>
</container>
</widgets>
<fail-widgets>
<container>
<container style="responsetext">
<platform-specific><html><html-template location="component://ecommerce/webapp/ecommerce/forum/messageDisplay.ftl"/></html></platform-specific>
</container>
</container>
</fail-widgets>
</section>
</widgets>
</section>
</screen>
<screen name="policies">
<section>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<sub-content content-id="WebStoreCONTENT" map-key="policies"/>
<sub-content content-id="WebStoreCONTENT" map-key="policies2"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>