Foren

Get all Layouts or Site Pages from login.event.post using Liferay API

thumbnail
Surodip Patra, geändert vor 11 Jahren.

Get all Layouts or Site Pages from login.event.post using Liferay API

Junior Member Beiträge: 29 Beitrittsdatum: 25.01.13 Neueste Beiträge
Hi Liferay,

I have created a login hook and I am using login.event.post.
Now my requirement is like that, whenever a user logged in, I need all the Layouts or Pages for that Company.
The logged in user may see some of the whole layouts (due to his Role Permission), but I have to get all the Site Pages.

Can anyone help me in this?

Thanks & Regards,
Surodip Patra
thumbnail
Jaynil A Bagdai, geändert vor 11 Jahren.

RE: Get all Layouts or Site Pages from login.event.post using Liferay API (Antwort)

Regular Member Beiträge: 119 Beitrittsdatum: 03.03.12 Neueste Beiträge
Hi Surodip,

You can use Dynamic Query with LayoutLocalServiceUtil to get all layouts, and there you can specify criteria as company_id with current company id.
Which will list you all layouts of that company.

hope this helps you.

Regards,
Jaynil
thumbnail
Surodip Patra, geändert vor 11 Jahren.

RE: Get all Layouts or Site Pages from login.event.post using Liferay API

Junior Member Beiträge: 29 Beitrittsdatum: 25.01.13 Neueste Beiträge
Thanks Jaynil.