| <?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="FindWebSite"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleFindWebSite"/> |
| <set field="headerItem" value="websites"/> |
| <set field="labelTitleProperty" value="PageTitleFindWebSite"/> |
| |
| <entity-condition entity-name="WebSite" list-name="webSites"> |
| <order-by field-name="webSiteId"/> |
| </entity-condition> |
| </actions> |
| <widgets> |
| <decorator-screen name="mainContentDecorator" location="component://content/widget/CommonScreens.xml"> |
| <decorator-section name="body"> |
| <section> |
| <condition> |
| <if-has-permission permission="CONTENTMGR" action="_VIEW"/> |
| </condition> |
| <widgets> |
| <container><label style="head1">${uiLabelMap.PageTitleListWebSite}</label></container> |
| <container><link text="${uiLabelMap.CommonCreateNew} ${uiLabelMap.ContentWebSite}" target="EditWebSite" style="buttontext"/></container> |
| <include-form name="ListWebSites" location="component://content/webapp/content/website/WebSiteForms.xml"/> |
| </widgets> |
| <fail-widgets> |
| <label style="head3">${uiLabelMap.ContentViewPermissionError}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="CommonWebSiteDecorator"> |
| <section> |
| <actions> |
| <set field="headerItem" value="websites"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="mainContentDecorator" location="component://content/widget/CommonScreens.xml"> |
| <decorator-section name="body"> |
| <section> |
| <condition> |
| <if-has-permission permission="CONTENTMGR" action="_VIEW"/> |
| </condition> |
| <widgets> |
| <platform-specific><html><html-template location="component://content/webapp/content/website/WebSiteTabBar.ftl"/></html></platform-specific> |
| <container style="widget-container"> |
| <link text="${uiLabelMap.CommonCreateNew} ${uiLabelMap.ContentWebSite}" target="EditWebSite" style="buttontext"/> |
| </container> |
| |
| <decorator-section-include name="body"/> |
| </widgets> |
| <fail-widgets> |
| <label style="head3">${uiLabelMap.ContentViewPermissionError}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="EditWebSite"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditWebSite"/> |
| <set field="tabButtonItem" value="EditWebSite"/> |
| <set field="labelTitleProperty" value="PageTitleEditWebSite"/> |
| <set field="webSiteId" from-field="parameters.webSiteId"/> |
| <entity-one entity-name="WebSite" value-name="webSite"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonWebSiteDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <container><label style="head1">${uiLabelMap.PageTitleEditWebSite}</label></container> |
| <include-form name="EditWebSite" location="component://content/webapp/content/website/WebSiteForms.xml"/> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="WebSiteContent"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditWebSiteContent"/> |
| <set field="tabButtonItem" value="ListWebSiteContent"/> |
| <set field="labelTitleProperty" value="PageTitleEditWebSiteContent"/> |
| <set field="webSiteId" from-field="parameters.webSiteId"/> |
| <entity-one entity-name="WebSite" value-name="webSite"/> |
| |
| <entity-and entity-name="WebSiteContent" list-name="webSiteContent"> |
| <field-map field-name="webSiteId" env-name="webSiteId"/> |
| </entity-and> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonWebSiteDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <container style="widget-container"> |
| <label style="head1">WebSite Content</label> |
| <include-form name="ListWebSiteContent" location="component://content/webapp/content/website/WebSiteForms.xml"/> |
| </container> |
| <container style="widget-container"> |
| <include-form name="CreateWebSiteContent" location="component://content/webapp/content/website/WebSiteForms.xml"/> |
| </container> |
| <container style="widget-container"> |
| <label style="head2">Auto-Create Content Publish Points</label> |
| <include-form name="AutoCreateWebsiteContent" location="component://content/webapp/content/website/WebSiteForms.xml"/> |
| </container> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="EditWebSiteParties"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditWebSiteParties"/> |
| <set field="tabButtonItem" value="EditWebSiteParties"/> |
| <set field="labelTitleProperty" value="PageTitleEditWebSiteParties"/> |
| <set field="webSiteId" from-field="parameters.webSiteId"/> |
| <entity-one entity-name="WebSite" value-name="webSite"/> |
| <script location="component://content/webapp/content/WEB-INF/actions/website/EditWebSiteParties.bsh"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonWebSiteDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <container style="widget-container"> |
| <label style="head1">${uiLabelMap.PageTitleEditWebSiteParties}</label> |
| <include-form name="UpdateWebSiteRole" location="component://content/webapp/content/website/WebSiteForms.xml"/> |
| </container> |
| <include-form name="CreateWebSiteRole" location="component://content/webapp/content/website/WebSiteForms.xml"/> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="WebSiteCMS"> |
| <section> |
| <actions> |
| <set field="layoutSettings.javaScripts[+0]" value="/images/dojo/dojo.js" global="true"/> |
| <set field="titleProperty" value="PageTitleEditWebSiteCMS"/> |
| <set field="tabButtonItem" value="WebSiteCMS"/> |
| <set field="labelTitleProperty" value="PageTitleEditWebSiteCMS"/> |
| <set field="webSiteId" from-field="parameters.webSiteId"/> |
| <entity-one entity-name="WebSite" value-name="webSite"/> |
| |
| <script location="component://content/webapp/content/WEB-INF/actions/website/WebSitePublishPoint.bsh"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonWebSiteDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <condition> |
| <not> |
| <if-empty field-name="contentRoot"/> |
| </not> |
| </condition> |
| <widgets> |
| <container id="cmsnav" style="left-border"> |
| <include-screen name="WebSiteCMSNav"/> |
| </container> |
| <container id="cmsmain" style="nocolumns"> |
| <container id="cmscontent"> |
| <include-screen name="WebSiteCMSContent"/> |
| </container> |
| </container> |
| </widgets> |
| <fail-widgets> |
| <container id="norender" style="tableheadtext"> |
| <label text="There is no Content PUBLISH_POINT for this WebSite!"/> |
| </container> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="WebSiteCMSNav"> |
| <section> |
| <actions> |
| <set field="webSiteId" from-field="parameters.webSiteId"/> |
| <entity-one entity-name="WebSite" value-name="webSite"/> |
| |
| <script location="component://content/webapp/content/WEB-INF/actions/website/WebSitePublishPoint.bsh"/> |
| </actions> |
| <widgets> |
| <platform-specific> |
| <html> |
| <html-template location="component://content/webapp/content/website/WebSiteCMSNav.ftl"/> |
| </html> |
| </platform-specific> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="WebSiteCMSContent"> |
| <section> |
| <actions> |
| <set field="contentAssocTypeId" from-field="parameters.contentAssocTypeId"/> |
| <set field="dataResourceTypeId" from-field="parameters.dataResourceTypeId"/> |
| <set field="contentIdFrom" from-field="parameters.contentIdFrom"/> |
| <set field="webSiteId" from-field="parameters.webSiteId"/> |
| <set field="contentId" from-field="parameters.contentId"/> |
| <set field="mimeTypeId" value="text/html"/> |
| <entity-one entity-name="WebSite" value-name="webSite"/> |
| <entity-one entity-name="Content" value-name="content"/> |
| <entity-one entity-name="DataResource" value-name="dataResource"> |
| <field-map field-name="dataResourceId" env-name="content.dataResourceId"/> |
| </entity-one> |
| <entity-one entity-name="ElectronicText" value-name="dataText"> |
| <field-map field-name="dataResourceId" env-name="content.dataResourceId"/> |
| </entity-one> |
| <entity-one entity-name="ContentAssoc" value-name="assoc"> |
| <field-map field-name="contentId" env-name="parameters.contentIdFrom"/> |
| <field-map field-name="contentIdTo" env-name="parameters.contentId"/> |
| <field-map field-name="contentAssocTypeId" env-name="parameters.contentAssocTypeId"/> |
| <field-map field-name="fromDate" env-name="parameters.fromDate"/> |
| </entity-one> |
| <entity-and entity-name="ContentPurpose" list-name="currentPurposes"> |
| <field-map field-name="contentId" env-name="contentId"/> |
| </entity-and> |
| <entity-condition entity-name="ContentPurposeType" list-name="purposeTypes"> |
| <order-by field-name="description"/> |
| </entity-condition> |
| <entity-and entity-name="DataResource" list-name="templates"> |
| <field-map field-name="dataCategoryId" value="TEMPLATE"/> |
| <order-by field-name="dataResourceName"/> |
| </entity-and> |
| <entity-and entity-name="StatusItem" list-name="statuses"> |
| <field-map field-name="statusTypeId" value="CONTENT_STATUS"/> |
| <order-by field-name="sequenceId"/> |
| </entity-and> |
| <entity-condition entity-name="DataTemplateType" list-name="templateTypes"/> |
| <entity-and entity-name="Content" list-name="decorators"> |
| <field-map field-name="contentTypeId" value="DECORATOR"/> |
| </entity-and> |
| </actions> |
| <widgets> |
| <platform-specific> |
| <html> |
| <html-template location="component://content/webapp/content/website/WebSiteCMSContent.ftl"/> |
| </html> |
| </platform-specific> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="WebSiteCMSEditor"> |
| <section> |
| <actions> |
| <set field="webSiteId" from-field="parameters.webSiteId"/> |
| <set field="contentId" from-field="parameters.contentId"/> |
| <set field="mimeTypeId" value="text/html"/> |
| <entity-one entity-name="WebSite" value-name="webSite"/> |
| <entity-one entity-name="Content" value-name="content"/> |
| <entity-one entity-name="DataResource" value-name="dataResource"> |
| <field-map field-name="dataResourceId" env-name="content.dataResourceId"/> |
| </entity-one> |
| <entity-one entity-name="ElectronicText" value-name="dataText"> |
| <field-map field-name="dataResourceId" env-name="content.dataResourceId"/> |
| </entity-one> |
| </actions> |
| <widgets> |
| <platform-specific> |
| <html> |
| <html-template location="component://content/webapp/content/website/WebSiteCMSEditor.ftl"/> |
| </html> |
| </platform-specific> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="WebSiteCMSMetaInfo"> |
| <section> |
| <actions> |
| <set field="webSiteId" from-field="parameters.webSiteId"/> |
| <set field="contentId" from-field="parameters.contentId"/> |
| <entity-one entity-name="Content" value-name="content"/> |
| |
| <script location="component://content/webapp/content/WEB-INF/actions/website/WebSiteCMSMetaInfo.bsh"/> |
| </actions> |
| <widgets> |
| <platform-specific> |
| <html> |
| <html-template location="component://content/webapp/content/website/WebSiteCMSMeta.ftl"/> |
| </html> |
| </platform-specific> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="WebSiteCMSPathAlias"> |
| <section> |
| <actions> |
| <set field="webSiteId" from-field="parameters.webSiteId"/> |
| <set field="contentId" from-field="parameters.contentId"/> |
| <entity-one entity-name="WebSite" value-name="webSite"/> |
| <entity-one entity-name="Content" value-name="content"/> |
| <entity-and entity-name="WebSitePathAlias" list-name="aliases"> |
| <field-map field-name="webSiteId" env-name="webSiteId"/> |
| <field-map field-name="contentId" env-name="contentId"/> |
| </entity-and> |
| </actions> |
| <widgets> |
| <platform-specific> |
| <html> |
| <html-template location="component://content/webapp/content/website/WebSiteCMSPathAlias.ftl"/> |
| </html> |
| </platform-specific> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |