I'm trying to set a folder default view as a Dexterity content type that I created. But I see that Dexterity content types aren't in the list of possible default content views for folders. Why? Is there an option that I must set in the content type?
Asked
Active
Viewed 454 times
2 Answers
3
Content items are listed as candidate default pages if:
- the object is not a container type
or
the object portal type is listed in the
default_page_types
of yoursite_properties
property sheet. Find that in the ZMI (site settings -> Zope Management Interface ->portal_properties
).The
default_page_types
property is a list ofportal_type
ids; for Dexterity types that is usually a dotted name (the Dexterity manual usesexample.conference.presenter
for example).

Martijn Pieters
- 1,048,767
- 296
- 4,058
- 3,343
-
Its works! But why the first restriction? May be I want to put a content object that is containing its own images and other resources. – Daniel Hernández Mar 02 '13 at 16:02
-
@DanielHernández: Sorry, I worded this wrong. All non-container types are listed *and* any type explicitly listed in `default_page_types`. – Martijn Pieters Mar 02 '13 at 16:07
-
When a type is considered a non-container? I set dexterity type having no `allowed_content_types` empty and `filter_content_types` True but the content type is not listed to be set as the default view. – Daniel Hernández Mar 02 '13 at 16:19
-
The code tests for the `.is_folderish` attribute. It *could* be that dexterity types don't have that attribute and thus through acquisition this is looked up on the parent (which is always a container and thus `.is_folderish` will be `True`). – Martijn Pieters Mar 02 '13 at 16:23
-
Clarification: the `.is_folderish` attribute is a catalog index, and it uses the `.isPrincipiaFolderish` attribute on objects. These *are* present on Dexterity content types. – Martijn Pieters Mar 02 '13 at 17:13
-
I was [asking about it](http://stackoverflow.com/questions/15177286/how-to-add-the-is-folderish-attribute-to-dexterity-objects) a few seconds before I read your comment. You guess that I could don't understand that ;-) – Daniel Hernández Mar 02 '13 at 17:28
0
Update for Plone 5.x
Go to
Site Setup > Content Settings
control panelSelect your (dexteity-)contenttype in the
Workflow, visibility and versioning settings for your content types
dropdown.check
Can be used as a default page
(default_page_types property has been removed from ZMI)