Skip to content


contentbody tile: AttributeError: getText with DX type from p.a.contenttypes #323

agitator opened this Issue · 2 comments

3 participants

Plone Collective member

since the document from p.a.contenttype doesn't have an accessor getText an attribute error occures and destroys the whole layout.

proposed solution: check if getText is available, alternatively check for text as well and fallback to None.


is there any example how to test something like this?

Plone Collective member

a workaround could be change the tile template to something like this:

  <div tal:condition="body" class="contentbody tile-content">
    <div class="content" tal:content="structure body|nothing">Body</div>
    <div class="visualClear"><!-- --></div>
Plone Collective member

awesome! thanks! :beer:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.