Skip to content

Commit

Permalink
feat: Hide the shared layout for the content editor page - EXO-72846- M…
Browse files Browse the repository at this point in the history
…eeds-io/MIPs#128 (#2270)

Prior to this change, the shared layout was present on the content editor page, and the editor did not take the maximum width of the window, which hid the right editor actions. This change will set the two properties hide-shared-layout and show-max-window to true and configure an upgrade plugin to update the content editor page, resolving these issues.
  • Loading branch information
sofyenne authored and azayati committed Sep 9, 2024
1 parent 0897fe9 commit 3b788cd
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,53 @@
</object-param>
</init-params>
</component-plugin>
<component-plugin>
<name>ContentEditorPageLayoutUpgrade</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>150</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="updatePageLayout">
<boolean>true</boolean>
</field>
<field name="configPath">
<string>war:/conf/sites/</string>
</field>
<field name="portalType">
<string>portal</string>
</field>
<field name="portalName">
<string>global</string>
</field>
<field name="pageNames">
<collection type="java.util.ArrayList" item-type="java.lang.String">
<value>
<string>newsComposer</string>
</value>
</collection>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
<component-plugin>
<name>PwaAdministrationPageLayoutUpgrade</name>
<set-method>addUpgradePlugin</set-method>
Expand Down Expand Up @@ -546,4 +593,4 @@
</component-plugin>
</external-component-plugins>

</configuration>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,8 @@
<title>News Composer</title>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<edit-permission>manager:/platform/administrators</edit-permission>
<show-max-window>true</show-max-window>
<hide-shared-layout>true</hide-shared-layout>
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
<section-columns>
<column col-span="12">
Expand Down Expand Up @@ -2032,4 +2034,4 @@
</section-columns>
</container>
</page>
</page-set>
</page-set>

0 comments on commit 3b788cd

Please sign in to comment.