Domain: Liferay
Version: 6.1.2 CE
Module: Liferay Themes
In Liferay we can deploy any number of themes to and those are available to all the Sites and Organizations. Sometimes we want to develop/deploy theme to certain Sites/Community pages. By out of the box Liferay doesn’t provide this feature but with little additional configuration to theme xml file (liferay-look-and-feel.xml). When building Lifeay we need to add below snippet to the Liferay-look-and-feel.xml file.
1<look-and-feel>2<compatibility>3<version>6.1.1+</version>4</compatibility>5<group-limit>6<group-includes>7<group-id name="123456"/>8</group-includes>9</group-limit>10<theme id="ktree_bootstrap" name="KTree Bootstrap">11<layout-templates>12<custom>13<layout-template id="one_row_bootstrap" name="One Row Bootstrap Layout">14<template-path>/layouttpl/custom/one-row-bootstrap- layouttpl/one_row_bootstrap.tpl</template-path>15<wap-template-path>/layouttpl/custom/one-row-bootstrap- layouttpl/one_row_bootstrap.tpl</wap-template-path>16<thumbnail-path>/layouttpl/custom/one-row-bootstrap- layouttpl/one_row_bootstrap.png</thumbnail-path>17</layout-template>18<layout-template id="one_two_3_9_column_bootstrap" name="1-2 (3/9span) Column Bootstrap Layout">19<template-path>/layouttpl/custom/one-two-3-9-column-bootstrap- layouttpl/one_two_3_9_column_bootstrap.tpl</template-path>20<wap-template-path>/layouttpl/custom/one-two-3-9-column-bootstrap- layouttpl/one_two_3_9_column_bootstrap.tpl</wap-template-path>21<thumbnail-path>/layouttpl/custom/one-two-3-9-column-bootstrap- layouttpl/one_two_3_9_column_bootstrap.png</thumbnail-path>22</layout-template>23</custom>24</layout-templates>25</theme>26</look-and-feel>
That’s it, now your theme would be visible to only specified group as mentioned in tag. Similarly we can configure to visible theme to particular roles with the given scope.



