Message Boards

Liferay DXP Headless API - Get content by page is not possible?

Niclas Deissler, modified 2 Years ago.

Liferay DXP Headless API - Get content by page is not possible?

New Member Post: 1 Join Date: 8/5/21 Recent Posts

Hello,

we want to use Liferay DXP 7.3 headless, but have a problem to map our page structure, as there is no API command for this.

You can apparently only retrieve "Any web content", which would be an absolute loss of efficiency for our wrapper layer/front end.  

There seems to be no way to retrieve only the webcontent/content of a single page via API. But to me this makes no sense if such a feature should not exist in a headless CMS.

Did we miss something?

Thanks in advance for an answer!

thumbnail
Javier Gamarra, modified 2 Years ago.

RE: Liferay DXP Headless API - Get content by page is not possible?

Expert Posts: 348 Join Date: 2/12/15 Recent Posts

There is an API to list the elements in a content page that returns the page structure. For widget page there isn't an API but it should be easy to add.