Applying the theme for the site template programmatically
In previous post we have seen adding the site template and page template programatically . If you want to look into those posts again please follow the links below. Creation of Site Template http://liferaytutorial.blogspot.in/2015/03/adding-site-template-programmatically.html Creation of Page Template http://liferaytutorial.blogspot.in/2015/03/adding-page-template-in-liferay.html Sometimes it is required to apply the custom theme for the site template. So how we can do that? Here is as follows, I have a theme called label and themeid is label_WAR_labeltheme . As we know that SiteTemplate is stored in the LayoutSetProtoType table. So we can get the template from the layoutsetprototypeutil LayoutSetPrototype layoutSetProtoType = LayoutSetPrototypeUtil.get(----------------); LayoutSetLocalServiceUtil.updateLookAndFeel(layoutSetPrototype.getGroupId(), "label_WAR_labeltheme", "01", "",false); Thats it we have ap...