From 30a17a5cf9c66d1e84da28ca7c8e443f1f886827 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Mon, 30 Oct 2023 11:41:26 +0100 Subject: [PATCH] feat: Public site Page and Navigation visibility - MEED-2811 - Meeds-io/MIPs#100 (#1229) This change will introduce a new Listener Event configuration to update 'actions' page visibility switch Hub Access Type. In addition, this change will use the 'Behavior container' of name 'UIOpenRegistrationContainer.gtmpl' to hide Gamification widgets from Public page when the Hub access isn't Open. --- .../conf/sites/portal-configuration.xml | 15 +++ .../conf/sites/portal/public/pages.xml | 118 ++++++++++-------- 2 files changed, 80 insertions(+), 53 deletions(-) diff --git a/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal-configuration.xml b/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal-configuration.xml index 98e967fd6..1c7f56a85 100644 --- a/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal-configuration.xml +++ b/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal-configuration.xml @@ -133,4 +133,19 @@ + + org.exoplatform.services.listener.ListenerService + + meeds.settings.access.type.modified + addListener + io.meeds.portal.security.listener.PortalRegistrationUpdateListener + + + managed-pages + overview/actions + + + + + diff --git a/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/public/pages.xml b/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/public/pages.xml index deae8fea2..073dc72fa 100644 --- a/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/public/pages.xml +++ b/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/public/pages.xml @@ -81,7 +81,8 @@ + cssClass="mb-5" + profiles="notes"> Everyone @@ -100,54 +101,62 @@ false - + Everyone + id="gamificationWidgets" + template="system:/groovy/portal/webui/container/UIVRowContainer.gtmpl" + cssClass="mb-5" + profiles="gamification"> Everyone - - - gamification-portlets - topChallengers - - Top Challengers + Everyone - false - - - - Everyone - - - gamification-portlets - challengesOverview - - Challenges Overview + + + gamification-portlets + topChallengers + + Top Challengers + Everyone + false + + + Everyone - false - - - - Everyone - - - gamification-portlets - programsOverview - - Programs Overview + + + gamification-portlets + challengesOverview + + Challenges Overview + Everyone + false + + + Everyone - false - + + + gamification-portlets + programsOverview + + Programs Overview + Everyone + false + + @@ -160,18 +169,21 @@ Everyone *:/platform/administrators true - + Everyone - - - gamification-portlets - EngagementCenterActions - - Gamification Actions + Everyone - false - false - + + + gamification-portlets + EngagementCenterActions + + Gamification Actions + Everyone + false + false + +