Foros de discusión

Display my_account portlet in the Add Application menu

thumbnail
julien morali, modificado hace 13 años.

Display my_account portlet in the Add Application menu

New Member Mensajes: 3 Fecha de incorporación: 23/11/09 Mensajes recientes
Hi all,

I'm using liferay 5.2.3 and developping in the ext environnment.
I want to do a simple thing and yet I can't find the way : I would like to display the "my_account" portlet on a community page.
I don't understand why this portlet isn't listed in the Add Application menu, because I can see it in the liferay-display.xml and liferay-portlet.xml files !!!
If I understand right those configurations, I should find this portlet in the "Tools" category of the Add Application menu, but I don't !!!

Please help me on this one, I'm really struggling for several days now ...

Thank's by advance !
thumbnail
Sandeep Nair, modificado hace 13 años.

RE: Display my_account portlet in the Add Application menu

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
Hi,

In liferay-portlet.xml try commenting out the last system tag as below

<portlet-name>2</portlet-name>
<icon>/html/icons/default.png</icon>
<struts-path>my_account</struts-path>
<portlet-url-class>com.liferay.portal.struts.StrutsActionPortletURL</portlet-url-class>
<control-panel-entry-category>my</control-panel-entry-category>
<control-panel-entry-weight>1.0</control-panel-entry-weight>
<control-panel-entry-class>com.liferay.portlet.myaccount.MyAccountControlPanelEntry</control-panel-entry-class>
<use-default-template>false</use-default-template>
<restore-current-view>false</restore-current-view>
<private-request-attributes>false</private-request-attributes>
<private-session-attributes>false</private-session-attributes>
<render-weight>50</render-weight>
<header-portlet-css>/html/portlet/enterprise_admin/css.jsp</header-portlet-css>
<footer-portlet-javascript>/html/portlet/enterprise_admin/javascript.js</footer-portlet-javascript>
<css-class-wrapper>portlet-enterprise-admin</css-class-wrapper>
<add-default-resource>true</add-default-resource>
<!--<system>true</system>-->

Regards,
Sandeep
thumbnail
julien morali, modificado hace 13 años.

RE: Display my_account portlet in the Add Application menu

New Member Mensajes: 3 Fecha de incorporación: 23/11/09 Mensajes recientes
Dear Sandeep,

This works fine !

By the way, I had to overide the ViewAction because for some reason, the minimize portlet view wouldn't show the content...

Anyway, thank's for your help, this really helped me !

Regards,
Julien.