Access "My Account" from sitemap.json

Amos Fong, modified 7 Years ago. New Member Posts: 20 Join Date: 9/28/18 Recent Posts
Hello everybody,

I want to implement the feature my account to the sitemap.json, so users can change their liferay login-data etc. 

I found the com_liferay_my_account_web_portlet_MyAccountPortlet but when i implement it in the sitemap.json and trynna open it in liferay there is only a small line with "Configuration" as title.

Should i have to add some portletpreferences or something else to work with?

Thanks in advance.

​​​​​​​Luk 
thumbnail
Minhchau Dang, modified 7 Years ago. Liferay Master Posts: 598 Join Date: 10/22/07 Recent Posts
I found the com_liferay_my_account_web_portlet_MyAccountPortlet but when i implement it in the sitemap.json and trynna open it in liferay there is only a small line with "Configuration" as title.

com_liferay_my_account_web_portlet_MyAccountPortlet is a system portlet, so by default, I don't think you're allowed to add it to pages. I'm not sure what I would expect to happen if you generate a page with a system portlet already added to the page (I feel like it wouldn't show up right, but I've never tried it).

You can try following the blog post on Overriding Component Properties to set the com.liferay.portlet.system property to false for the MyAccountPortlet component to see if it becomes visible outside of the control panel.