RE: Liferay.Service how to get uuid of content page?

Olaf Kock, modified 1 Year ago. New Member Posts: 3 Join Date: 11/2/22 Recent Posts

I'm trying to access a layout's information using this service "/layout/get-layout-by-uuid-and-group-id" via JSONWS but I'm unable to find/get the uuid of a content page. Is this possible via JavaScript, using Liferay.ThemeDisplay.getUUID()... for example.

I would like to return values of a page such as page name, page url, modified date etc. If there is another service that provides this, can you please let me know?

thumbnail
Mohammed Yasin, modified 1 Year ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts

Hi,

You can try using " /layout/fetch-layout"  service via JSONWS.

This service takes layout id and groupId as parameters, you can get it from Liferay.ThemeDisplay.getLayoutId() and Liferay.ThemeDisplay.getScopeGroupId() .