Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
angu manikandan
Theme Developement
14. Februar 2013 22:14
Antwort

angu manikandan

Rang: Junior Member

Nachrichten: 72

Eintrittsdatum: 16. Juli 2012

Neue Beiträge

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?
Anhänge: theme lifersay forum quest.dib (19,9k)
Oliver Bayer
RE: Theme Developement
15. Februar 2013 01:21
Antwort

Oliver Bayer

Rang: Liferay Master

Nachrichten: 881

Eintrittsdatum: 18. Februar 2009

Neue Beiträge

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
angu manikandan
RE: Theme Developement
15. Februar 2013 02:19
Antwort

angu manikandan

Rang: Junior Member

Nachrichten: 72

Eintrittsdatum: 16. Juli 2012

Neue Beiträge

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
RE: Theme Developement
15. Februar 2013 03:12
Antwort

Oliver Bayer

Rang: Liferay Master

Nachrichten: 881

Eintrittsdatum: 18. Februar 2009

Neue Beiträge

Hi,

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

HTH Oli
Aryan sahu
RE: Theme Developement
15. Februar 2013 10:53
Antwort

Aryan sahu

Rang: Junior Member

Nachrichten: 73

Eintrittsdatum: 23. Juli 2012

Neue Beiträge

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 .
angu manikandan
RE: Theme Developement
22. Februar 2013 01:29
Antwort

angu manikandan

Rang: Junior Member

Nachrichten: 72

Eintrittsdatum: 16. Juli 2012

Neue Beiträge

Thanks for Your guidence i got a output...........
angu manikandan
RE: Theme Developement
22. Februar 2013 21:34
Antwort

angu manikandan

Rang: Junior Member

Nachrichten: 72

Eintrittsdatum: 16. Juli 2012

Neue Beiträge

Onclick functionalities are not working..........it display in theme bt not working just rendering in same page.........
Anonym
RE: Theme Developement
22. Februar 2013 22:01
Antwort

Anonym

Have the different themes be one theme just different color schemes then allow the user to click different skin which will add the color schemes class to the body.

https://gist.github.com/randombrad/1592267