问题
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?
回答1:
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).
回答2:
Update for Plone 5.x
- Go to
Site Setup > Content Settings
control panel - Select 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)
来源:https://stackoverflow.com/questions/15176176/how-can-i-add-a-dexterity-content-type-as-the-default-view