[Zope-CMF] portal_types & meta type (Plone)
Juan Pablo Romero
jpablo@kan.ajusco.upn.mx
01 Aug 2002 22:07:35 -0500
Hi
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".
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