Hi,
Based on this tutorial 
http://plone.org/documentation/how-to/adding-portlet-managers/view?searchterm=portlet
http://plone.org/documentation/how-to/adding-portlet-managers/view?searchterm=portlet
,I'm trying to add my own portlet in my own portlet manager in my own view.
I have a problem with the portlet manager.
The server restart normally but I have the following error message when
refreshing the page :

ContentProviderLookupError: LastPublicationPortletManager

It's comes from this file, which is my viewlet (in
{myProduct}/browser/template/sancy.pt)
<div style="background-color:#7E7C7C; color:white; height:100px;
margin-top:10px; width:100%;">
        <tal:block replace="structure provider:LastPublicationPortletManager" 
/>        
</div>

It's sounds like it could not find the porlet manager. If I comment the tal
tag, then it works fine (I mean, the viewlet is displayed without any
errors...)
I've defined the portlet manager like this:
in {myProduct}/browser/interfaces.py
from plone.portlets.interfaces import IPortletManager
class ILastPublicationContent(IPortletManager):
    """we need our own portlet manager for last publication.
    """

in {myProduct}/profiles/default/portlets.xml
<?xml version="1.0"?>
<portlets> 
 <portletmanager 
   name="LastPublicationPortletManager"
   type="Products.LECAStyle.browser.interfaces.ILastPublicationContent"
 />


Am I missing something to get the portlet manager ?

Thanks for your help

Julien
-- 
View this message in context: 
http://www.nabble.com/Adding-a-my-own-portlet-manager-tf4493310s20094.html#a12814935
Sent from the Product Developers mailing list archive at Nabble.com.


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

Reply via email to