improved menu widget for portal pages, reactivated menuitem override and various other improvements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@744675 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -43,8 +43,8 @@ under the License.
|
||||
<set field="applicationMenuName" value="ExampleAppBar" global="true"/>
|
||||
<set field="applicationMenuLocation" value="component://example/widget/example/ExampleMenus.xml" global="true"/>
|
||||
<!--set field="appheaderTemplate" value="component://example/webapp/appheader.ftl"/-->
|
||||
<set field="parameters.parentPortalPageId" value="EXAMPLE"/>
|
||||
<script location="component://common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy"/>
|
||||
<set field="parameters.parentPortalPageId" from-field="parameters.parentPortalPageId" default-value="EXAMPLE"/>
|
||||
<script location="component://common/webcommon/WEB-INF/actions/includes/GetParentPortalPageId.groovy"/>
|
||||
<set field="applicationTitle" value="${uiLabelMap.ExampleApplication}" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
@@ -180,7 +180,11 @@ under the License.
|
||||
<section>
|
||||
<actions>
|
||||
<set field="parameters.portalPageId" value="EXAMPLE"/>
|
||||
<script location="component://common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy"/>
|
||||
<entity-one entity-name="PortalPage" value-field="portalPage"/>
|
||||
<get-related value-field="portalPage" relation-name="PortalPageColumn" list="portalPageColumns"/>
|
||||
<entity-and entity-name="PortalPagePortletView" list="portalPagePortlets">
|
||||
<field-map field-name="portalPageId" from-field="portalPage.portalPageId"/>
|
||||
</entity-and>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="FindExample" location="component://example/widget/example/ExampleScreens.xml"/>
|
||||
|
||||
@@ -19,14 +19,13 @@ under the License.
|
||||
-->
|
||||
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
<menu name="ExampleAppBar" title="${uiLabelMap.ExampleApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="Example" title="${uiLabelMap.ExampleExample}"><link target="FindExample"/></menu-item>
|
||||
<menu-item name="ExampleFeature" title="${uiLabelMap.ExampleFeature}"><link target="FindExampleFeature"/></menu-item>
|
||||
<menu-item name="FormWidgetExamples" title="${uiLabelMap.ExampleFormWidgetExamples}"><link target="FormWidgetExamples"/></menu-item>
|
||||
<menu-item name="AjaxExample" title="Ajax Examples"><link target="authview/findExampleAjax"/></menu-item>
|
||||
<menu-item portal-page="EXAMPLE"/>
|
||||
<menu-item name="portalPage" parent-portal-page-value="${parameters.parentPortalPageId}"/>
|
||||
<menu-item name="Dashboard" title="Dashboard" align-style="opposed"><link target="ManagePortalPages?portalPageId=${currentPortalPage.portalPageId}&parentPortalPageId=${parameters.parentPortalPageId}"/></menu-item>
|
||||
</menu>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user