How can I add a Dexterity content type as the default view?

浪子不回头ぞ 提交于 2019-12-06 13:41:42

问题


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)



来源:https://stackoverflow.com/questions/15176176/how-can-i-add-a-dexterity-content-type-as-the-default-view

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!