Skip to content

Commit

Permalink
feat: Add Contribute Page in Community Space Template - MEED-7726 - #…
Browse files Browse the repository at this point in the history
…2545 (#2553)

This change will update Home Page of Community Space to use the default
one an will move contributions widgets into a dedicated 'contribute'
page.
  • Loading branch information
boubaker committed Nov 1, 2024
1 parent a3cf958 commit 97d2da7
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ portal.global.spaceTasks=Tasks
portal.global.spaceWallet=Wallet
portal.global.spaceMembers=Members
portal.global.spaceSettings=Settings
portal.global.spaceContribute=Contribute
portal.global.more=More
portal.global.apps=Apps
news.navigation.node.label=News
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
<label>#{portal.global.spaceHome}</label>
<icon>fas fa-home</icon>
<page-reference>group_template::community::home</page-reference>
<node>
<name>contribute</name>
<label>#{portal.global.spaceContribute}</label>
<icon>fas fa-rocket</icon>
<page-reference>group_template::community::contribute</page-reference>
</node>
<node>
<name>apps</name>
<label>#{portal.global.apps}</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,73 @@
<title>Home</title>
<access-permissions>member:@owner_id@</access-permissions>
<edit-permission>*:/platform/administrators</edit-permission>
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl"><!-- To be deleted once WebUI is cleaned from Meeds package -->
<section-columns>
<column col-span="12">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceBannerPortlet</portlet-ref>
</portlet>
<title>Space Banner</title>
</portlet-application>
</column>
</section-columns>
<section-columns
sticky-beahvior="true"
mobile-columns-style="true">
<column col-span="8">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceActivityStreamPortlet</portlet-ref>
</portlet>
<title>Space Activity Stream</title>
</portlet-application>
</column>
<column col-span="4">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceWidgetDescription</portlet-ref>
</portlet>
<title>Space Description</title>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceWidgetManagers</portlet-ref>
</portlet>
<title>Space Managers</title>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceWidgetMembers</portlet-ref>
</portlet>
<title>Space Members</title>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>WhoIsOnLinePortlet</portlet-ref>
</portlet>
<title>Who is on Line</title>
</portlet-application>
<container id="space-home-widgets-community-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>space-home-widgets-community-container</name>
<factory-id>addonContainer</factory-id>
</container>
</column>
</section-columns>
</container>
</page>

<page>
<name>contribute</name>
<title>Contribute</title>
<access-permissions>member:@owner_id@</access-permissions>
<edit-permission>*:/platform/administrators</edit-permission>
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl"><!-- To be deleted once WebUI is cleaned from Meeds package -->
<section-columns mobile-columns-style="true">
<column col-span="4">
Expand All @@ -47,7 +114,29 @@
</preferences>
</portlet>
<title>Leaderboard</title>
<height>360</height>
<height>300</height>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>gamification-portlets</application-ref>
<portlet-ref>myContributions</portlet-ref>
<preferences>
<preference>
<name>myContributionsPeriod</name>
<value>week</value>
</preference>
<preference>
<name>myContributionsDisplayLegend</name>
<value>true</value>
</preference>
<preference>
<name>myContributionsProgramLimit</name>
<value>4</value>
</preference>
</preferences>
</portlet>
<title>Contributions</title>
<height>400</height>
</portlet-application>
</column>
<column col-span="4">
Expand All @@ -58,7 +147,7 @@
<preferences>
<preference>
<name>limit</name>
<value>4</value>
<value>3</value>
</preference>
<preference>
<name>programsSortBy</name>
Expand All @@ -67,10 +156,8 @@
</preferences>
</portlet>
<title>Programs Overview</title>
<height>360</height>
<height>300</height>
</portlet-application>
</column>
<column col-span="4">
<portlet-application>
<portlet>
<application-ref>gamification-portlets</application-ref>
Expand Down Expand Up @@ -99,55 +186,18 @@
</preferences>
</portlet>
<title>Actions overview</title>
<height>360</height>
</portlet-application>
</column>
</section-columns>
<section-columns
sticky-beahvior="true"
mobile-columns-style="true">
<column col-span="8">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceActivityStreamPortlet</portlet-ref>
</portlet>
<title>Space Activity Stream</title>
<height>400</height>
</portlet-application>
</column>
<column col-span="4">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>WhoIsOnLinePortlet</portlet-ref>
</portlet>
<title>Who is on Line</title>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceWidgetDescription</portlet-ref>
</portlet>
<title>Space Description</title>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceWidgetManagers</portlet-ref>
</portlet>
<title>Space Managers</title>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceWidgetMembers</portlet-ref>
<application-ref>gamification-portlets</application-ref>
<portlet-ref>UsersLeaderboard</portlet-ref>
</portlet>
<title>Space Members</title>
<title>Actions overview</title>
<height>720</height>
</portlet-application>
<container id="space-home-widgets-community-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>space-home-widgets-community-container</name>
<factory-id>addonContainer</factory-id>
</container>
</column>
</section-columns>
</container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1957,5 +1957,61 @@
</object-param>
</init-params>
</component-plugin>
<component-plugin profiles="layout">
<name>CommunitySpaceTemplateLayoutUpgrade</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>130</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>CommunitySpaceTemplate.upgrade</name>
<object type="io.meeds.social.upgrade.model.LayoutUpgrade">
<field name="updatePageLayout">
<boolean>true</boolean>
</field>
<field name="updateNavigation">
<boolean>true</boolean>
</field>
<field name="configPath">
<string>war:/conf/sites/</string>
</field>
<field name="portalType">
<string>group_template</string>
</field>
<field name="portalName">
<string>community</string>
</field>
<field name="importMode">
<string>merge</string>
</field>
<field name="pageNames">
<collection type="java.util.ArrayList" item-type="java.lang.String">
<value>
<string>home</string>
</value>
<value>
<string>contribute</string>
</value>
</collection>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>
</configuration>

0 comments on commit 97d2da7

Please sign in to comment.