Re: theme custom portlet import

Rubén Carreno <[email protected]>
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <1173890428.4857.6.camel@localhost>
I think that the problem is the xml file's name. The file name must be
the same that the object name ('portlet_session.xml', not
'portlet.xml'). 

You must change too the identifier (the actual value is
portlet_384728523).

Regards.

El mié, 14-03-2007 a las 16:48 +0100, Winterflood, Jonathan escribió:
> Hi all,
> I'm modifying a theme, and I cannot get a custom portlet to work
> straight form import
>  
> The portlet is supposed to show a 'you are logged in' message, and
> provide a link to logout (the same as the cpsdefault session info
> portlet), plus add a log in link when the user isn't logged
>  
> This is how things are organised:
>  
> the modified 'portlet_session_info.pt' is in \skins
>  
> the portlet is declared in \profiles\default\cps_portlets.xml:
>     (
> <object name="portlet_session" meta_type="CPS Portlet"
> portal_type="Custom Portlet"/>
>     )
>  
> it is defined in \profiles\default\cps_portlets\portlet.xml:
>     (
> <object name="portlet_session" meta_type="CPS Portlet"
> portal_type="Custom Portlet">
>   <f id="Contributors">
>     <e v="dpma"/>
>   </f>
>   <f id="Coverage" v=""/>
>   <f id="CreationDate" v="20070314102841Z"/>
>   <f id="Creator" v="dpma"/>
>   <f id="Description" v=""/>
>   <f id="EffectiveDate" v=""/>
>   <f id="ExpirationDate" v=""/>
>   <f id="Format" v="text/html"/>
>   <f id="Language" v=""/>
>   <f id="ModificationDate" v="20070314102908Z"/>
>   <f id="Relation" v=""/>
>   <f id="Rights" v=""/>
>   <f id="Source" v=""/>
>   <f id="Subject"/>
>   <f id="Title" v="Informations de session"/>
>   <f id="allow_discussion" v="False"/>
>   <f id="cache_cleanup_date" v="1173868148.54"/>
>   <f id="cache_params"/>
>   <f id="cache_timeout" v="0"/>
>   <f id="custom_cache_params">
>     <e v="no-cache"/>
>   </f>
>   <f id="disable_override" v="0"/>
>   <f id="identifier" v="portlet_384728523"/>
>   <f id="javascript" v=""/>
>   <f id="js_render_method" v=""/>
>   <f id="order" v="0"/>
>   <f id="portlet" v=""/>
>   <f id="preview"/>
>   <f id="provider" v=""/>
>   <f id="render_method" v="portlet_session_info" />
>   <f id="slot" v="user_session"/>
>   <f id="slot_override" v="1"/>
>   <f id="visibility_range" v="0-0"/> 
> </object>
>   )
> as exported from the site (the portlet was created in the ZMI theme
> editor)
>  
> the two themes documents for the sites two themes (portlet box templet
> files) use the portlet thus:
>    (
>  <property name="portlet_id">portlet_384728523</property>
>  <property name="portlet_type">Custom Portlet</property>
>    )
>  
> however, if I import the profile onto the cpsdefault site, the theme
> is imported fine, with the exception of this portlet: the portlet box
> is there, but the 'portlet' card of the box'es properties is blank,
> and the portlet isn't rendered (obviously)
> If I re-parametrize the box, a new portlet is created by the
> interface, (created in the portlets.xml and portlets folder on an
> export)
>  
> I've been messing around with this for a while but i just can't seem
> to get it to work, what am I doing wrong?
>  
> Thanks,
> Jonathan
> This message contains information that may be privileged or
> confidential and is the property of the Capgemini Group. It is
> intended only for the person to whom it is addressed. If you are not
> the intended recipient, you are not authorized to read, print, retain,
> copy, disseminate, distribute, or use this message or any part
> thereof. If you receive this message in error, please notify the
> sender immediately and delete all copies of this message.
> 
> 
> _______________________________________________
> cps-devel mailing list
> http://lists.nuxeo.com/mailman/listinfo/cps-devel
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.