[Zope-CMF] content type problem
Florent Guillaume
fg@nuxeo.com
Fri, 30 Aug 2002 16:48:52 +0000 (UTC)
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