Skip to content

Commit

Permalink
feat: Configure Builtin Sites to be displayed in Sidebar By default - M…
Browse files Browse the repository at this point in the history
…EED-8323 - Meeds-io/MIPs#175 (#159) (#160)

This change will add an explicit definition of 'displayed' attribute in Default portal definitions in prder to import it in Sidebar by default. The default value of this flag has been changed to false in order to avoid errors while mapping DTO from database or when using the API to create a new Site.

In addition, this change will prepare the default sites layout to use the new Site Layout Definition.
  • Loading branch information
boubaker authored Feb 6, 2025
1 parent 9001634 commit 51b4a8a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 196 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_10 http://www.gatein.org/xml/ns/gatein_objects_1_10"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_10">
<portal-name>dw</portal-name>
<displayed>true</displayed>
<display-order>40</display-order>
<locale>en</locale>
<access-permissions>member:/platform/users;member:/platform/externals</access-permissions>
Expand All @@ -13,6 +14,6 @@
<entry key="icon">fa-dot-circle</entry>
</properties>
<portal-layout>
<page-body> </page-body>
<page-body />
</portal-layout>
</portal-config>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<portal-name>intranet</portal-name>
<label>Intranet</label>
<description>Develop your communication with a modern intranet</description>
<displayed>true</displayed>
<display-order>1</display-order>
<locale>en</locale>
<access-permissions>member:/platform/users</access-permissions>
Expand All @@ -32,46 +33,6 @@
<entry key="icon">fa-home</entry>
</properties>
<portal-layout>
<container id="UITopBarContainer" template="system:/groovy/portal/webui/container/UITopBarContainer.gtmpl">
<access-permissions>*:/platform/users</access-permissions>
<container id="left-topBar-container" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<access-permissions>Everyone</access-permissions>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>TopBarLogo</portlet-ref>
</portlet>
<title>Company Logo</title>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
<show-application-state>false</show-application-state>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>layout-management</application-ref>
<portlet-ref>SiteNavigation</portlet-ref>
</portlet>
<title>site navigation</title>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
<show-application-state>false</show-application-state>
</portlet-application>
</container>
<container id="middle-topBar-container" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>TopBarMenu</portlet-ref>
</portlet>
<title>Top Bar Menu </title>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
<show-application-state>false</show-application-state>
</portlet-application>
</container>
<container id="right-topBar-container" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
</container>
</container>
<page-body> </page-body>
<page-body />
</portal-layout>
</portal-config>

This file was deleted.

This file was deleted.

0 comments on commit 51b4a8a

Please sign in to comment.