applications/content/widget/layout/LayoutScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="FindLayout">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindLayout"/>
<set field="activeSubMenuItem" to-scope="user" value="FindLayout"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
</actions>
<widgets>
<decorator-screen name="CommonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<container style="button-bar">
<link target="EditLayoutSubContent" text="${uiLabelMap.CommonCreateNew}" style="${styles.link_nav} ${styles.action_add}">
<parameter param-name="mode" value="add"/>
<parameter param-name="contentIdTo" value="TEMPLATE_MASTER"/>
</link>
</container>
</decorator-section>
<decorator-section name="search-options">
<include-form name="findLayout" location="component://content/widget/layout/LayoutForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listFindLayout" location="component://content/widget/layout/LayoutForms.xml"/>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListLayout">
<section>
<actions>
<set field="titleProperty" value="PageTitleListLayout"/>
<set field="activeSubMenuItem" to-scope="user" value="ListLayout"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<entity-and entity-name="ContentAssocDataResourceViewFrom" list="layoutList">
<field-map field-name="caContentIdTo" value="TEMPLATE_MASTER"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<container>
<link target="EditLayoutSubContent" text="${uiLabelMap.CommonCreateNew}" style="${styles.link_nav} ${styles.action_add}">
<parameter param-name="mode" value="add"/>
<parameter param-name="contentIdTo" value="TEMPLATE_MASTER"/>
</link>
</container>
<include-form name="listListLayout" location="component://content/widget/layout/LayoutForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditLayout">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditLayout"/>
<set field="activeSubMenuItem" to-scope="user" value="EditLayout"/>
<set field="wrapTemplateId" value="STDWRAP001"/>
<entity-one entity-name="ContentDataResourceView" value-field="currentValue"/>
</actions>
<widgets>
<decorator-screen name="CommonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<include-form name="EditLayout" location="component://content/widget/layout/LayoutForms.xml"/>
<link target="cloneLayout" text="${uiLabelMap.ContentCloneLayout}" style="${styles.link_run_sys} ${styles.action_copy}">
<parameter param-name="contentId" from-field="currentValue.contentId"/>
</link>
<platform-specific>
<html><html-template location="component://content/webapp/content/layout/renderSubContent.ftl"/></html>
</platform-specific>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditLayoutSubContent">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditLayoutSubContent"/>
<set field="activeSubMenuItem" to-scope="user" value="EditLayoutSubContent"/>
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<include-form name="EditLayoutSubContent" location="component://content/widget/layout/LayoutForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditLayoutText">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditLayout"/>
<set field="activeSubMenuItem" to-scope="user" value="EditLayoutText"/>
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<!--
<include-form name="EditLayoutText" location="component://content/widget/layout/LayoutForms.xml"/>
-->
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditLayoutHtml">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditLayout"/>
<set field="activeSubMenuItem" to-scope="user" value="EditLayoutHtml"/>
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<!--
<include-form name="EditLayoutHtml" location="component://content/widget/layout/LayoutForms.xml"/>
-->
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditLayoutUrl">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditLayout"/>
<set field="activeSubMenuItem" to-scope="user" value="EditLayoutUrl"/>
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<!--
<include-form name="EditLayoutUrl" location="component://content/widget/layout/LayoutForms.xml"/>
-->
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditLayoutImage">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditLayout"/>
<set field="activeSubMenuItem" to-scope="user" value="EditLayoutImage"/>
<entity-one entity-name="SubContentDataResourceView" value-field="currentValue"/>
<script location="component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<!--
<include-form name="EditLayoutImage" location="component://content/widget/layout/LayoutForms.xml"/>
-->
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="AddLayout">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditLayout"/>
<set field="activeSubMenuItem" to-scope="user" value="EditLayout"/>
</actions>
<widgets>
<decorator-screen name="CommonLayoutDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<include-form name="AddLayout" location="component://content/widget/layout/LayoutForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>