Fórum

Theme Developement

thumbnail
angu manikandan, modificado 11 Anos atrás.

Theme Developement

Junior Member Postagens: 72 Data de Entrada: 16/07/12 Postagens Recentes
Hi all,

I am using LR 6.1. We have developed and customized 3 themes which I want the end user will apply according to his choice in his screen. The end user would have all the 3 themes and he will select the one of his choice by clicking button in Theme. Is it possible to achieve in LifeRay?
Oliver Bayer, modificado 11 Anos atrás.

RE: Theme Developement

Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
Hi Angu,

a user with manage pages permission can choose from all deployed themes ootb that means if you haven't changed anything.

Greets Oli
thumbnail
angu manikandan, modificado 11 Anos atrás.

RE: Theme Developement

Junior Member Postagens: 72 Data de Entrada: 16/07/12 Postagens Recentes
I created one portlet like that i want to place that plortlet in theme level..........i dnt know how to place in theme..................
Oliver Bayer, modificado 11 Anos atrás.

RE: Theme Developement

Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
Hi,

you can use $theme.runtime("<Portlet-ID>") to include a portlet in your theme or layout-template.

HTH Oli
thumbnail
angu manikandan, modificado 11 Anos atrás.

RE: Theme Developement

Junior Member Postagens: 72 Data de Entrada: 16/07/12 Postagens Recentes
Thanks for Your guidence i got a output...........
thumbnail
Aryan sahu, modificado 11 Anos atrás.

RE: Theme Developement

Junior Member Postagens: 73 Data de Entrada: 24/07/12 Postagens Recentes
hi you can use $theme.runtime("your portlet id here");

if you want to know the id click on the portlet configuration tab and click on the sharing tab .you will notice something like this

<script src="http://localhost:2020/html/js/liferay/widget.js" type="text/javascript"></script>
<script type="text/javascript">
Liferay.Widget({ url: 'http://localhost:2020/en_GB/widget/web/guest/hookportlet/-/8'});
</script>

here the portlet id is 8 after /hookportlet/- similarly you can find the id of the portlet and use .
thumbnail
angu manikandan, modificado 11 Anos atrás.

RE: Theme Developement

Junior Member Postagens: 72 Data de Entrada: 16/07/12 Postagens Recentes
Onclick functionalities are not working..........it display in theme bt not working just rendering in same page.........
Bradley Wood, modificado 11 Anos atrás.

RE: Theme Developement