Skip to content

Commit

Permalink
feat: Invert Spaces and People Navigation Menu - MEED-3052 - #1397 (#…
Browse files Browse the repository at this point in the history
…1419)

This change will invert the display of Spaces and People Menu items in
Left Menu.
  • Loading branch information
boubaker authored and rdenarie committed Dec 7, 2023
1 parent 183aaa4 commit 08fb967
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
xmlns="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd">

<import>war:/conf/meeds/portal-configuration.xml</import>
<import>war:/conf/meeds/portal-upgrade-configuration.xml</import>
<import>war:/conf/meeds/resources-bundle-configuration.xml</import>
<import>war:/conf/meeds/space-template-configuration.xml</import>
<import>war:/conf/meeds/features-configuration.xml</import>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2023 Meeds Association contact@meeds.io
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd" xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">

<external-component-plugins>
<target-component>org.exoplatform.commons.upgrade.UpgradeProductService</target-component>
<component-plugin>
<name>SpacePeopleNavigationUpgrade</name>
<set-method>addUpgradePlugin</set-method>
<type>io.meeds.social.upgrade.LayoutUpgradePlugin</type>
<init-params>
<value-param>
<name>product.group.id</name>
<value>org.exoplatform.social</value>
</value-param>
<value-param>
<name>plugin.execution.order</name>
<value>120</value>
</value-param>
<value-param>
<name>plugin.upgrade.execute.once</name>
<value>true</value>
</value-param>
<value-param>
<name>enabled</name>
<value>true</value>
</value-param>
<object-param>
<name>overview.upgrade</name>
<object type="io.meeds.social.upgrade.model.LayoutUpgrade">
<field name="updateNavigation">
<boolean>true</boolean>
</field>
<field name="configPath">
<string>war:/conf/meeds/</string>
</field>
<field name="portalType">
<string>portal</string>
</field>
<field name="portalName">
<string>meeds</string>
</field>
<field name="importMode">
<string>overwrite</string>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>

</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
<icon>fas fa-user-lock</icon>
<page-reference>portal::global::externalStream</page-reference>
</node>
<node>
<name>spaces</name>
<label>#{portal.meeds.spaces}</label>
<icon>fas fa-people-arrows</icon>
<page-reference>portal::global::all-spaces</page-reference>
</node>
<node>
<name>people</name>
<label>#{portal.meeds.people}</label>
<icon>fas fa-users</icon>
<page-reference>portal::global::all-people</page-reference>
</node>
<node>
<name>spaces</name>
<label>#{portal.meeds.spaces}</label>
<icon>fas fa-people-arrows</icon>
<page-reference>portal::global::all-spaces</page-reference>
</node>
</page-nodes>
</node-navigation>

0 comments on commit 08fb967

Please sign in to comment.