Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ramesh shankar
How to add javascript content programatically to site pages
March 26, 2013 10:22 PM
Answer

Ramesh shankar

Rank: New Member

Posts: 3

Join Date: March 3, 2013

Recent Posts

Hi,

I there any API i can use to add java script content to site pages. Which otherwise can be done using the liferay control panel and page customizations menus.

Thanks & Regards
Ramesh
Samuel Kong
RE: How to add javascript content programatically to site pages
March 26, 2013 11:40 PM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Master

Posts: 979

Join Date: March 10, 2008

Recent Posts

Yes, take a look at

[url=http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/LayoutServiceUtil.html#updateLayout(long,%20boolean,%20long,%20java.lang.String)]LayoutServiceUtil.updateLayout(long groupId, boolean privateLayout, long layoutId, String typeSettings)
[url=http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/LayoutLocalServiceUtil.html#updateLayout(long,%20boolean,%20long,%20java.lang.String)]LayoutLocalServiceUtil.updateLayout(long groupId, boolean privateLayout, long layoutId, String typeSettings)

or

[url=http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/LayoutSetLocalServiceUtil.html#updateSettings(long,%20boolean,%20java.lang.String)]LayoutSetLocalServiceUtil.updateSettings(long groupId, boolean privateLayout, String settings)
[url=http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/LayoutSetServiceUtil.html#updateSettings(long,%20boolean,%20java.lang.String)]LayoutSetServiceUtil.updateSettings(long groupId, boolean privateLayout, String settings)