Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
agitator opened this Issue · 2 comments

3 participants

@agitator
Collaborator

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.

objections?

is there any example how to test something like this?

@hvelarde
Owner

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>
  </div>
@hvelarde
Owner

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.