Nuxeo mailing list archives
RE : [CPS-devel] theme custom portlet import
Winterflood, Jonathan
jonathan.winterflood at capgemini.com
Wed Mar 14 18:00:27 CET 2007
Oh sorry, the file name _is_ portlet_session.xml, indeed this is compulsory
Thanks for pointing it out, nonetheless.
I don't get what you mean by changing the identifier,
the portlet uses
<f id="identifier" v="portlet_384728523"/>
and the box,
<property name="portlet_id">portlet_384728523</property>
(same numbers)
Is there somewhere else I should specify this?
Thanks,
Jonathan
________________________________
De: Rubén Carreno [mailto:ruben.carreno at iavante.es]
Date: mer. 14/03/2007 17:40
À: Winterflood, Jonathan
Cc: cps-devel at lists.nuxeo.com
Objet : Re: [CPS-devel] theme custom portlet import
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
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/60c0d8c6/attachment.html
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.