I have requirement such that, to configure the welcome page of User’s Private Page with my custom portlets dynamically. On successful login User lands to his private page. Based on his roles he should see the portlets on the auto created welcome page. User1 has to see portlet A and User2 has to see portlet B.
Asked
Active
Viewed 600 times
0
-
can you elaborate more on your requirement? – Pankaj Kathiriya Jan 27 '14 at 06:55
-
i have updated the question. is this ok? – Rahul Dev Jan 27 '14 at 07:11
-
Not Exactly. Do you want that user should see portlets based on his role then you can give VIEW permission for portlet based on role. Also if you want it like user can put portlet he wants on his private page then you should give UPDATE permission in pages to USER role. – Pankaj Kathiriya Jan 27 '14 at 07:59
-
The thing is user do have update permission. On the users first login his layout has to be created dynamically. Leave the roles part. – Rahul Dev Jan 27 '14 at 08:59
-
check if this helps you in any way https://www.liferay.com/marketplace/-/mp/application/17676547 – Ravi Kumar Gupta Jan 29 '14 at 07:10
1 Answers
0
You can modify and add portlets to page (Layout) problematically by the Action that fired by first user login. See this answer How to add nested portlets(liferay) through code .