Skip to content

Instantly share code, notes, and snippets.

@datakurre
Last active October 20, 2017 11:14
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 datakurre/8b27346fcd4c4481a9db3b74e5b47d1b to your computer and use it in GitHub Desktop.
Save datakurre/8b27346fcd4c4481a9db3b74e5b47d1b to your computer and use it in GitHub Desktop.
Tile with a single RichText field in Plone Mosaic with collective.themefragments
<tal:block define="value nocall:view/data/html|nothing;
output_relative_to nocall:value/@@output_relative_to|nothing"
condition="output_relative_to"
content="structure python:output_relative_to(context)" />
<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://namespaces.plone.org/supermodel/schema"
xmlns:form="http://namespaces.plone.org/supermodel/form"
xmlns:marshal="http://namespaces.plone.org/supermodel/marshal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="plone">
<schema>
<field name="html" type="plone.app.textfield.RichText" marshal:primary="true"
form:widget="plone.app.z3cform.widget.RichTextFieldWidget">
<title>Text</title>
</field>
</schema>
</model>
[versions]
plone.tiles = 2.0.0b3
plone.jsonserializer = 0.9.5
plone.app.blocks = 4.1.1
# or newer...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment