Skip to content Skip to sidebar Skip to footer

Change Liferay Portlet Title In Javascript

Does it possible to change liferay portlet title using javascript? For example I have a couple of divs, one of them is shown, other are hidden. I press the button and different div

Solution 1:

You could add some custom javascript as jQuery is available something like

$('#idOfPortlet').find('.portlet-title').html('new title'); would suffice. This would narrow this down to a particular portlet you could include this using the liferay-portlet.xml file in your portlet

Post a Comment for "Change Liferay Portlet Title In Javascript"