سؤال

What would be the easiest way (using code in a view) to remove the 'Add new...' menu item from the object menu for a specific view?

I've used IConstrainTypes before, but it seems a little strange since it stores the constrains between requests.

هل كانت مفيدة؟

المحلول

You can make it very easily with a Diazo rule like that:

<drop css:content="#plone-contentmenu-factories" css:if-content=".template-your_view" />
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top