Skip to content

Commit

Permalink
feat: Define Space Global Pages - Meeds-io/MIPs#150 (#2501)
Browse files Browse the repository at this point in the history
This change will allow to access space 'SYSTEM' pages even when the
Space site doesn't define it. The system pages are 'tasks', 'notes',
'members' and 'settings'.
  • Loading branch information
boubaker committed Oct 23, 2024
1 parent 0f37c22 commit 05f5125
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ portal.global.layout-editor=Layout Editor
portal.global.portlet-editor=Portlet Editor
portal.global.portlet-viewer=Portlet Viewer
portal.global.organizationalChart=Organizational Chart
portal.global.spaceHome=Space Home
portal.global.spaceNotes=Space Notes
portal.global.spaceMembers=Space Members
portal.global.spaceSettings=Space Settings
news.navigation.node.label=News
portal.global.newsEditor=News editor
portal.global.newsDetail=News details
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,5 +331,34 @@
<page-reference>portal::global::analytics-contents</page-reference>
</node>
</node>
<node>
<name>home</name>
<label>#{portal.global.spaceHome}</label>
<visibility>SYSTEM</visibility>
<node>
<name>tasks</name>
<label>#{portal.global.spaceTasks}</label>
<visibility>SYSTEM</visibility>
<page-reference>portal::global::tasks</page-reference>
</node>
<node>
<name>notes</name>
<label>#{portal.global.spaceNotes}</label>
<visibility>SYSTEM</visibility>
<page-reference>portal::global::notes</page-reference>
</node>
<node>
<name>members</name>
<label>#{portal.global.spaceMembers}</label>
<visibility>SYSTEM</visibility>
<page-reference>portal::global::space-members</page-reference>
</node>
<node>
<name>settings</name>
<label>#{portal.global.spaceSettings}</label>
<visibility>SYSTEM</visibility>
<page-reference>portal::global::space-settings</page-reference>
</node>
</node>
</page-nodes>
</node-navigation>
Original file line number Diff line number Diff line change
Expand Up @@ -1983,4 +1983,95 @@
</section-columns>
</container>
</page>

<page profiles="notes">
<name>notes</name>
<title>Notes</title>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<edit-permission>manager:/platform/administrators</edit-permission>
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
<section-columns>
<column col-span="12">
<container id="top-space-notes-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>top-space-notes-container</name>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<factory-id>addonContainer</factory-id>
</container>
<portlet-application>
<portlet>
<application-ref>notes</application-ref>
<portlet-ref>Notes</portlet-ref>
</portlet>
<title>Space Notes</title>
</portlet-application>
<container id="bottom-space-notes-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>bottom-space-notes-container</name>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<factory-id>addonContainer</factory-id>
</container>
</column>
</section-columns>
</container>
</page>

<page>
<name>space-settings</name>
<title>Space Settings</title>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<edit-permission>manager:/platform/administrators</edit-permission>
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
<section-columns>
<column col-span="12">
<container id="top-space-settings-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>top-space-settings-container</name>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<factory-id>addonContainer</factory-id>
</container>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceSettingPortlet</portlet-ref>
</portlet>
<title>Space Settings</title>
</portlet-application>
<container id="bottom-space-settings-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>bottom-space-settings-container</name>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<factory-id>addonContainer</factory-id>
</container>
</column>
</section-columns>
</container>
</page>

<page>
<name>space-members</name>
<title>Space Members</title>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<edit-permission>manager:/platform/administrators</edit-permission>
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
<section-columns>
<column col-span="12">
<container id="top-space-members-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>top-space-members-container</name>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<factory-id>addonContainer</factory-id>
</container>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>MembersPortlet</portlet-ref>
</portlet>
<title>Space Settings</title>
</portlet-application>
<container id="bottom-space-members-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>bottom-space-members-container</name>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<factory-id>addonContainer</factory-id>
</container>
</column>
</section-columns>
</container>
</page>

</page-set>

0 comments on commit 05f5125

Please sign in to comment.