Nuxeo mailing list archives
[CPS-devel] theme custom portlet import
Winterflood, Jonathan
jonathan.winterflood at capgemini.com
Wed Mar 14 16:48:44 CET 2007
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20070314/a79ba9ec/attachment.htm
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.