Skip to content

Instantly share code, notes, and snippets.

@pigeonflight
Last active November 20, 2017 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pigeonflight/fed128a88888e947bdf760f2ed26132b to your computer and use it in GitHub Desktop.
Save pigeonflight/fed128a88888e947bdf760f2ed26132b to your computer and use it in GitHub Desktop.
Plone Mosaic Full Width Grid Registry entry

With collective.themesitesetup

Use with collective.themesitesetup and place in a folder of your theme called "install" The contents of custom.css is needed to ensure that the fullwidth works as expected.

Import directly with Plone 5.1.x or higher

With Plone 5.1.x you can import the registry.xml file directly at {yoursite}/portal_registry

/* resets a specific bootstrap container ONLY */
.outer-wrapper > .container {
width: auto;
margin-left: 0;
margin-right: 0;
padding-right: 0;
padding-left: 0;
}
.mosaic-grid-row-fullwidth {
padding-left: 0;
padding-right: 0;
}
<?xml version="1.0"?>
<registry>
<record name="plone.app.mosaic.default_available_actions">
<value purge="False">
<element>grid-row-fullwidth</element>
</value>
</record>
<records interface="plone.app.mosaic.interfaces.IFormat"
prefix="plone.app.mosaic.formats.grid_row_fullwidth">
<value key="name">grid-row-fullwidth</value>
<value key="category">row</value>
<value key="label">Full width</value>
<value key="action">row-toggle-class</value>
<value key="icon">true</value>
<value key="favorite">false</value>
<value key="weight">100</value>
</records>
</registry>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment