Fórum
Liferay 7: My Account add portlet control panel
K F, modificado 7 Anos atrás.
Liferay 7: My Account add portlet control panel
Junior Member Postagens: 52 Data de Entrada: 11/01/17 Postagens Recentes
Hi Liferay community,
How to add My Account portlet (user settings) on selected page? This portlet is invisible in add portlet control panel. I do not want to create a new copy of this portlet with exactly the same source because it includes too much code and it does not work during update user action. Please help, thanks in advance.
How to add My Account portlet (user settings) on selected page? This portlet is invisible in add portlet control panel. I do not want to create a new copy of this portlet with exactly the same source because it includes too much code and it does not work during update user action. Please help, thanks in advance.
David H Nebinger, modificado 7 Anos atrás.
RE: Liferay 7: My Account add portlet control panel
Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
It is not a portlet, it is merely a panel deployed and displayed within a panel app.
You will not be able to display individual panels in your app because you get either all or none.
You'll need to emulate the functionality in your own portlet if you need to build an independent UI from the panel.
You will not be able to display individual panels in your app because you get either all or none.
You'll need to emulate the functionality in your own portlet if you need to build an independent UI from the panel.
K F, modificado 7 Anos atrás.
RE: Liferay 7: My Account add portlet control panel
Junior Member Postagens: 52 Data de Entrada: 11/01/17 Postagens Recentes
You are absolutely right, it works. I built a new seperated portlet with My Account features. Only one thing remains, I cannot get list of custom fields
I don't get any error but list is empty. Custom fields are configured properly.
<%@ include file="/init.jsp" %>
<%
User selUser = themeDisplay.getUser();
%>
<aui:fieldset>
<liferay-expando:custom-attribute-list
className="com.liferay.portal.kernel.model.User"
classPK="<%= (selUser != null) ? selUser.getUserId() : 0 %>"
editable="<%= true %>"
label="<%= true %>"
/>
</aui:fieldset>
I don't get any error but list is empty. Custom fields are configured properly.
K F, modificado 7 Anos atrás.
RE: Liferay 7: My Account add portlet control panel
Junior Member Postagens: 52 Data de Entrada: 11/01/17 Postagens Recentes
Ok I see my mistake I was missing
unfortunately there is a problem with dependency, I included it in gradle build but during deployment it doesn't see expando. Maybe I have not configured a bnd file properly but I am not sure.
<%@ taglib uri="http://liferay.com/tld/expando" prefix="liferay-expando" %>
unfortunately there is a problem with dependency, I included it in gradle build but during deployment it doesn't see expando. Maybe I have not configured a bnd file properly but I am not sure.