Skip to content

Instantly share code, notes, and snippets.

@datakurre
Created July 6, 2017 15:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datakurre/3a1f332e68fa47ea0693592eda84624e to your computer and use it in GitHub Desktop.
Save datakurre/3a1f332e68fa47ea0693592eda84624e to your computer and use it in GitHub Desktop.
Rich text tiles with templates in Plone Mosaic
<?xml version="1.0"?>
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="plone">
<records prefix="plone.app.mosaic.structure_tiles.card"
interface="plone.app.mosaic.interfaces.ITile">
<value key="default_value">&lt;div class="card-header"&gt;Header&lt;/div&gt;&lt;div class="card card-block"&gt;&lt;h3 class="card-title"&gt;TItle 1&lt;/h3&gt;&lt;p class="card-text"&gt;Content&lt;/p&gt;&lt;/div&gt;</value>
<value key="category">structure</value>
<value key="read_only">False</value>
<value key="name">card</value>
<value key="settings">False</value>
<value key="favorite">False</value>
<value key="label">Card</value>
<value key="tile_type">text</value>
<value key="rich_text">True</value>
<value key="weight">80</value>
</records>
<record name="plone.app.mosaic.structure_tiles.card.available_actions">
<field type="plone.registry.field.List">
<value_type type="plone.registry.field.TextLine" />
</field>
<value>
<element>toolbar-bold</element>
<element>toolbar-italic</element>
<element>toolbar-bullist</element>
<element>toolbar-numlist</element>
<element>toolbar-table</element>
<element>toolbar-ploneimage</element>
<element>toolbar-unlink</element>
<element>toolbar-plonelink</element>
<element>toolbar-code</element>
<element>toolbar-template</element>
<element>contextmenu-tableprops</element>
<element>contextmenu-cell</element>
<element>contextmenu-row</element>
<element>contextmenu-column</element>
</value>
</record>
</registry>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment