[Product-Developers] finishing a product
Hedley Roos
hedleyroos at gmail.com
Wed Apr 9 06:55:32 UTC 2008
> >
> > It sounds as though you have subclassed BaseFolder to create your own
> > folderish type. Set allowed_content_types to = ('Topic',) in the class
> > declaration. Restart. Reinstall. It should work.
> >
>
> This works to add Topic (Collection in v3) object to the list of addable
> types. I would like to either add one programmatically inside this
> Folder-ish type when it is created, or at least limit the number that can be
> created to only one. But more importantly, I'd like to make the Topic the
> default view once it exists (or, again, at least make it possible to make
> the Topic view the default view). Simply making Topics addable doesn't seem
> to do this.
>
To make the topic the default view only once it exists you can use an
old Zope trick: call the Topic object index_html. In fact, only the id
(aka Short Name) has to be index_html. The Title can be whatever you
want.
Note that some people may frown on this approach :)
H
More information about the Product-Developers
mailing list