| <?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" |
| xmlns="http://ofbiz.apache.org/Widget-Menu" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Menu http://ofbiz.apache.org/dtds/widget-menu.xsd"> |
| <menu name="MyPortalAppBar" |
| title="${uiLabelMap.PageTitleMyPortal} ${partyNameView.personalTitle} ${partyNameView.firstName} ${partyNameView.middleName} ${partyNameView.lastName} ${partyNameView.groupName}" |
| extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> |
| <menu-item name="main" parent-portal-page-value="${parameters.parentPortalPageId}"/> |
| <menu-item name="Dashboard" title="${uiLabelMap.CommonPreferences}" align-style="opposed"> |
| <link target="ManagePortalPages" link-type="anchor"> |
| <parameter param-name="parentPortalPageId" from-field="parameters.parentPortalPageId"/> |
| </link> |
| </menu-item> |
| <menu-item name="portalAdmin" title="${uiLabelMap.AdminPortalPage}"> |
| <condition> |
| <if-has-permission permission="MYPORTALBASE_ADMIN"/> |
| </condition> |
| <link target="FindPortalPage"/> |
| </menu-item> |
| </menu> |
| |
| <menu name="PortalPageAdmin"> |
| <menu-item name="duplicate" title="${uiLabelMap.CommonDuplicate}"> |
| <link target="DuplicatePortalPage"> |
| <parameter param-name="portalPageId" from-field="parameters.portalPageId"/> |
| </link> |
| </menu-item> |
| <menu-item name="new" title="${uiLabelMap.CommonNew}"> |
| <link target="NewPortalPage"/> |
| </menu-item> |
| <menu-item name="refresh" title="${uiLabelMap.CommonRefresh}"> |
| <link target="EditPortalPage"> |
| <parameter param-name="portalPageId" from-field="parameters.portalPageId"/> |
| </link> |
| </menu-item> |
| <menu-item name="portalAdmin" title="${uiLabelMap.MyPortalAdminPortalPage}"> |
| <condition> |
| <and><if-has-permission permission="WEBTOOLS_VIEW"/> |
| <or> |
| <if-has-permission permission="MYPORTALBASE_ADMIN"/> |
| </or> |
| </and> |
| </condition> |
| <link target="FindPortalPage"/> |
| </menu-item> |
| </menu> |
| |
| <menu name="PortalPageAdmin"> |
| <menu-item name="duplicate" title="${uiLabelMap.CommonDuplicate}"> |
| <link target="DuplicatePortalPage"> |
| <parameter param-name="portalPageId" from-field="parameters.portalPageId"/> |
| </link> |
| </menu-item> |
| <menu-item name="new" title="${uiLabelMap.CommonNew}"> |
| <link target="NewPortalPage"/> |
| </menu-item> |
| <menu-item name="refresh" title="${uiLabelMap.CommonRefresh}"> |
| <link target="EditPortalPage"> |
| <parameter param-name="portalPageId" from-field="parameters.portalPageId"/> |
| </link> |
| </menu-item> |
| </menu> |
| |
| </menus> |