Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Access "My Account" from sitemap.json
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
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
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.