plone / plone.app.dexterity

Dexterity is a content type system for Plone
http://docs.plone.org/external/plone.app.dexterity/docs/index.html
18 stars 42 forks source link

Dexterity IRichTextBehavior and plone.app.textfield.RichText fields (with values) freeze Contents (/folder_contents) feature #238

Open angelawong opened 7 years ago

angelawong commented 7 years ago

I think there is an issue with Dexterity rich text fields. If I were to create items using a content type with either or both of the IRichTextBehavior and plone.app.textfield.RichText fields in it and place it in a folder called Policies, the following will occur:

  1. /policies will show the items listed in the folder
  2. /policies/folder_contents will freeze the page (it will keep churning without any resolution)

What I have noticed is that if there are no values on either or both of these fields, /folder_contents will display the content type. However, if there are values on either one or both of the fields, /folder_contents will freeze -- the page will keep churning with no resolution.

The question was first posed at: https://community.plone.org/t/dexterity-irichtextbehavior-and-plone-app-textfield-richtext-fields-freeze-contents-folder-contents-feature/3585

jensens commented 7 years ago

May you create and post a minimal example how to make this happen?

jensens commented 7 years ago

And add the Plone version used, thanks.

angelawong commented 7 years ago

Plone 5.0.6rc1 Zope 2.13.24 Python 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]

To create a new content type: Addons > Dexterity Content Type > Add New Content Type

In the new content type: To create the IRichTextBehavior field: Go to Behaviors tab > check the RichText

To create the rich text field: Go to Fields tab > Add new field > Field type: Rich Text

Once the content type and fields are in place, I then used the content type in Plone. When there are values in the fields, /folder_contents will freeze. If there are no values in the fields, /folder_contents will list the content type items.