Message Boards

Set User profile and Dashboard

Hardik Patel, modified 3 Years ago.

Set User profile and Dashboard

New Member Posts: 4 Join Date: 8/8/20 Recent Posts
Hello Team,

I am using liferay 7.3 portal CE. I need to set user's profile page and dashboard page for every users that will be generated, I tried the following steps :

Step  1 : Created site template and exported.

Step 2 :
layout.user.private.layouts.enabled=true
layout.user.private.layouts.auto.create=true
default.user.private.layouts.lar=${liferay.home}/deploy/user_private_pages.lar
layout.user.public.layouts.enabled=true
layout.user.public.layouts.auto.create=true
default.user.public.layouts.lar=${liferay.home}/deploy/user_public_page.lar

Step 3 : Server restart

After restarting server, I created user but dashboard and profile page is not reflated and throwed larType not supported exception.Please suggest solution if anyone has faced similar issue.Thanks in advance

Regards,
Hardik
thumbnail
Christoph Rabel, modified 3 Years ago.

RE: Set User profile and Dashboard

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
I know, this should work, but I never tried it.
What we usually do is to create Groups with the private/public pages the user should have and then add the groups to the user when he is created (you can do this in the configuration by editing the default associations). The user inherits then the pages from the Group when he is created.
I always prefered that way because we often needed different profile pages depending on who the user is. That required some programming to add the correct groups, but it worked fine (At least with 7.2)
Maybe you could try to do it the way I described here?
Hardik Patel, modified 3 Years ago.

RE: Set User profile and Dashboard

New Member Posts: 4 Join Date: 8/8/20 Recent Posts
Thank you Christoph Rabel,Solution you provided is working fine, I setup dashboard and profile page from user group creation page and set user group name in default user group association.
Hardik Patel, modified 3 Years ago.

RE: Set User profile and Dashboard

New Member Posts: 4 Join Date: 8/8/20 Recent Posts
Hello,

I set set user profile and dashboard as per the discussion.
Url for the profile and dashboard is comes with some Id like as below :
http://localhost:8080/user/hardik.p/~/43418/aboutus
I set friendly url in ext.properties but not worked :

default.user.public.layout.friendly.url=/profile
default.user.private.layout.friendly.url=/home

Can you please help how to remove that /43418/ from url. ?
Thanks in advance.