New Dexterity content type works like a folder

Hi all,

I have added a new Dexterity content type on Plone 5.0.6.
While creating this new type, I chose "no content type" under "containded items"
But now, this new type works like a folder. Of course nothing can be added to this folder. What is the problem?
When I clone the file type, this problem doesn't occur.

Thanks.

There is no error in this apart an usability problem: every content type created TTW is folderish (I'm not happy with this default too) but I think you can easily fix it manually.

  • go to ZMI
  • look for portal_types tool
  • select you content type
  • change "Content type class" from plone.dexterity.content.Container to plone.dexterity.content.Item
1 Like

Thanks,

I changed it to "plone.app.contenttypes.content.File", and now its behavior is as expected.

@keul I wonder why that can't be a checkbox in the Dexterity control panel for each type

This issue or discussion is open for more than 2 years

1 Like

Thx @zopyx. I added my thoughts to that issue. I'd like to tell you that I could try to file a PR for it but I won't make silly promises. The logic David suggests seems a good solution, better than a checkbox.