[Zope-CMF] portal_types & meta type (Plone)
Tres Seaver
tseaver@zope.com
02 Aug 2002 13:51:57 -0400
On Thu, 2002-08-01 at 23:07, Juan Pablo Romero wrote:
> I have created a new content type ("Foro Item"), based on "News Item".
>
> Following the instructions in:
>
> http://plone.org/documentation/RepurposingContent
>
> Particularly I changed the meta type to "Foro Item".
Bad idea. *Don't* change the "Metatype" field of the type information
object; it *must* match the metatype of the underlying Python class.
> Examining the template that renders News Items, I can see that objects
> are selected according to its meta type and its review state
> ("published").
>
> After adding a new "Foro Item", I expect that:
>
> 1) the "news" tab doesn't pick up my item
> 2) if I add a new portal action (to get a new global tab: "foros") that
> calls a modified "news" action (my modification consists only in
> changing the meta type of the query) then "foros" should display my item
> (after publishing it).
>
> Unfortunately, it seems that my "foro item" continues to be detected as
> a news item by plone :(
>
> Here is an excerpt of my customized template:
> (based on "portal_skins/plone_templates/news" and renamed "foros")
>
> ...
> tal:define="results python:container.portal_catalog(
> meta_type='Foro Item',
> sort_on='modified',
> sort_order='reverse',
> review_state='published')
> ....
>
> Am I missing something?
>
> Thanks in advance.
>
>
> Juan Pablo
>
>
> _______________________________________________
> 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
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com