-->

How can I add a Dexterity content type as the defa

2019-04-13 09:41发布

问题:

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 your site_properties property sheet. Find that in the ZMI (site settings -> Zope Management Interface -> portal_properties).

    The default_page_types property is a list of portal_type ids; for Dexterity types that is usually a dotted name (the Dexterity manual uses example.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)