Op 28-09-10 06:23, Andreas Jung schreef:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have a content-type "Leitlinie" and a content-type specific portlet.
> The content-type should be displayed together with the portlet in the
> left column. I am using
>
>   23<assignment
>   24     purge="True"
>   25     manager="plone.leftcolumn"
>   26     category="content_type"
>   27     key="Leitlinie"
>   28     />
>
> for blocking all portlets (including the navigation portlet)

I would expect this to mean: purge any portlets that are specifically 
set for this content type.  Portlets assigned to a location would still 
show up, as is indeed happening.


> and
>
>   30<assignment
>   31       type="dgho.onkopedia.portlets.LeitlinieInhaltPortlet"
>   32       manager="plone.leftcolumn"
>   33       category="content_type"
>   34       key="Leitlinie"
>   35       insert-before="*"
>   36>
>
> for adding my own portlet.
>
> However purging the portlets does not seem to work. The navigation
> is still showing up.
>
> <blacklist...>
>
> also does not work for me.
>
> http://plone.org/products/plone/roadmap/203
>
> mentions 'location' as required key - however in my case
> 'location' does not make much sense since a 'Leitlinie'
> may appear in various folders within the site.

What I see when I blacklist content type portlets from a location, say 
simply '/' for the Plone Site root, is that any portlets specifically 
set for any content type are not shown; portlets not limited to a 
content type are still shown.

I highly suspect what you want is not possible out of the box.

Possibly you could override the 
plone.app.portlets.interfaces.ILeftColumn manager for this specific 
content type, or do a patch on the code that fetches the registered 
portlets.


-- 
Maurits van Rees
Programmer, Zest Software

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to