Files
ofbiz-framework/applications/content/widget/layout/LayoutMenus.xml
T
Bruno Busco 1e39c7bd92 Part of OFBIZ-3067 - Menus and form widget files location
Content component
Moved menus from webapp to widget folder


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@828872 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 22:18:00 +00:00

104 lines
5.3 KiB
XML

<?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.
-->
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
<menu name="layout" selected-menuitem-context-field-name="tabButtonItem" default-menu-item-name="content" default-associated-content-id="${userLogin.userLoginId}" title="" type="simple"
menu-container-style="button-bar tab-bar" default-selected-style="selected">
<menu-item name="ListLayout" title="${uiLabelMap.ContentListOwnCreatedTemplates}" >
<link target="ListLayout" target-window="_top" style="tabButton"/>
</menu-item>
<menu-item name="FindLayout" title="${uiLabelMap.CommonFind}" >
<link target="FindLayout" target-window="_top" style="tabButton"/>
</menu-item>
<menu-item name="EditLayout" title="${uiLabelMap.CommonEdit}">
<condition>
<and>
<not><if-empty field="parameters.contentId"/></not>
<not><if-empty field="parameters.drDataResourceId"/></not>
</and>
</condition>
<link target="EditLayout" target-window="_top" style="tabButton" >
<parameter param-name="contentId" from-field="parameters.contentId"/>
<parameter param-name="drDataResourceId" from-field="parameters.drDataResourceId"/>
</link>
</menu-item>
<menu-item name="EditLayoutSubContent" title="${uiLabelMap.ContentSubContent}" >
<condition>
<and>
<not><if-empty field="parameters.contentId"/></not>
<not><if-empty field="parameters.drDataResourceId"/></not>
</and>
</condition>
<link target="EditLayoutSubContent" target-window="_top" style="tabButton" >
<parameter param-name="contentId" from-field="parameters.contentId"/>
<parameter param-name="drDataResourceId" from-field="parameters.drDataResourceId"/>
</link>
</menu-item>
<menu-item name="EditLayoutText" title="${uiLabelMap.ContentText}" >
<condition>
<and>
<not><if-empty field="parameters.contentId"/></not>
<not><if-empty field="parameters.drDataResourceId"/></not>
</and>
</condition>
<link target="EditLayoutText" target-window="_top" style="tabButton" >
<parameter param-name="contentId" from-field="parameters.contentId"/>
<parameter param-name="drDataResourceId" from-field="parameters.drDataResourceId"/>
</link>
</menu-item>
<menu-item name="EditLayoutHtml" title="${uiLabelMap.ContentHtml}" >
<condition>
<and>
<not><if-empty field="parameters.contentId"/></not>
<not><if-empty field="parameters.drDataResourceId"/></not>
</and>
</condition>
<link target="EditLayoutHtml" target-window="_top" style="tabButton" >
<parameter param-name="contentId" from-field="parameters.contentId"/>
<parameter param-name="drDataResourceId" from-field="parameters.drDataResourceId"/>
</link>
</menu-item>
<menu-item name="EditLayoutImage" title="${uiLabelMap.ContentImage}" >
<condition>
<and>
<not><if-empty field="parameters.contentId"/></not>
<not><if-empty field="parameters.drDataResourceId"/></not>
</and>
</condition>
<link target="EditLayoutImage" target-window="_top" style="tabButton" >
<parameter param-name="contentId" from-field="parameters.contentId"/>
<parameter param-name="drDataResourceId" from-field="parameters.drDataResourceId"/>
</link>
</menu-item>
<menu-item name="EditLayoutUrl" title="${uiLabelMap.ContentUrl}" >
<condition>
<and>
<not><if-empty field="parameters.contentId"/></not>
<not><if-empty field="parameters.drDataResourceId"/></not>
</and>
</condition>
<link target="EditLayoutUrl" target-window="_top" style="tabButton" >
<parameter param-name="contentId" from-field="parameters.contentId"/>
<parameter param-name="drDataResourceId" from-field="parameters.drDataResourceId"/>
</link>
</menu-item>
</menu>
</menus>