RE: Adding default web content when new page or layout created

jitendra shahi, modified 7 Years ago. Regular Member Posts: 126 Join Date: 12/18/17 Recent Posts
Hi All,

I am creating layout or page which is private using json API for every new site. Now I want to add web content display ( same in every page) on that page. Can I do it with API or is there any way of doing that please suggest. I am using liferay 6.2 ga 6.

​​​​​​​Thanks in advance
thumbnail
Sandeep Nair, modified 7 Years ago. Liferay Legend Posts: 1744 Join Date: 11/6/08 Recent Posts
Hi,

You can create page template and add the webcontent there and then use the api to create page but make sure to use the page template id (I believe its called LayoutPrototype)

Regards,
​​​​​​​Sandeep
jitendra shahi, modified 7 Years ago. Regular Member Posts: 126 Join Date: 12/18/17 Recent Posts
Thanks sandip. I got your point.