You are here: Home CMS.Info Blog Plone tips Restricting content types in Plone

Restricting content types in Plone

Small tip from Plone Users List. How to restrict content types in some folder.

Takahashi, Michael:
I’d like to be able to restrict news items so that they cannot be added throughout the entire site, except for in a folder called “news”. This folder will be the only place to add news items.

I am using Plone 2.1.1 with Zope 2.8.2.

This is what I have tried.  Throught the ZMI, unchecked “Implicitly Addable?” for “News Item” under portal_types.  Now “News Items” cannot be added throughout the entire Plone Site.  Great!  BUT, now I want to be able to add my news item in “Restrict addable types”, but since it was unchecked in the ZMI, this of course cannot happen.

Any suggestions?


J Cameron Cooper:
Create a new type "NewsFolder", as a copy of "Folder", and turn on type filtering and explicitly allow "News Item". Then create the 'news' folder as content of this type.

_____
tags:
Document Actions
CMS.Info Blog

RSS Subscribe to CMS Info by saving the URL of RSS icon to use in your newsreader.

Categories:
Plone (27)
Zope (1)
 
Powered by Plone