Kevin Howe wrote:
> I have a custom Python class (Container)  which uses Folder as it's base
> class. I also have a custom Python class (AnObject). I want it so that when
> you view a Container object, "AnObject" will be the only meta_type available
> to be added in the Add List. The problem is that since Container inherits
> from Folder, the Add List makes all object types available to be added. Is
> there any way to tell a class to show only certain meta_types?
> Kevin

There is more than one way. The proper way would probably to be adjust
the security settings on your class in python (filtered_metatypes?). The
easier way is to just to just write an HTMLFile dtml page to overide
manage_main which is what gets called for contents. You can use the
original as inspiration its at /OFS/main.dtml. An advantage of this is
you can add custom stuff to your contents page based on the context of
your product.


Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to