[Zope-CMF] content type problem

Jochen Haeberle listen@mail.midras.de
Mon, 2 Sep 2002 11:34:12 +0200


Hi Florent!

Thanks for the info - that did it!
What's the difference between type and portal_type? why does 
type='Tipp' list all my documents derived on pre-built types???

Regards
Jochen

At 16:48 Uhr +0000 30.08.2002, Florent Guillaume wrote:
>Jochen Haeberle  <listen@mail.midras.de> wrote:
>>  I created a content type "Tipps" in portal_types. Product Meta-Type =
>>  Tipps, Product Name = CMF Default, Product factory method =
>>  addDocument, initial view name = tipp _edit_form.
>
>Product Meta-Type should not be changed from its original. It's the
>meta_type of the underlying class.
>
>>  I would like to show all my tipps on a seperate page. My idea was to
>>  change the meta-type to "Tipp" and use the "News"-page as a basis.
>
>Don't change the meta type.
>
>>  But how do I change the meta-type of such a content type?
>
>You don't. You change it's id, which is reflected in the portal_type
>attribute of your content.
>
>>  Looking at
>>  my catalog, the meta-type is still "Document", but the type is
>>  "Tipp". So I tried to change the selection statement to
>
>>
>>  tal:define="results
>> 
>>python:container.portal_catalog(type='Tipp',sort_on='modified',sort_order='reverse',review_state='published');
>
>That should be 
>portal_catalog(portal_type='Tipp',sort_on='modified',sort_order='reverse',review_state='published')
>provided your portal type's Id is "Tipp".
>
>
>Florent
>--
>Florent Guillaume, Nuxeo (Paris, France)
>+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com
>
>_______________________________________________
>Zope-CMF maillist  -  Zope-CMF@zope.org
>http://lists.zope.org/mailman/listinfo/zope-cmf
>
>See http://collector.zope.org/CMF for bug reports and feature requests