Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Srividhya Mohanasundaram
Change Portlet Title in Velocity Template
December 21, 2012 8:42 AM
Answer

Srividhya Mohanasundaram

Rank: New Member

Posts: 20

Join Date: June 29, 2012

Recent Posts

How can I change the portlet title in velocity template?
Dhrutika Vyas
RE: Change Portlet Title in Velocity Template
December 21, 2012 9:58 AM
Answer

Dhrutika Vyas

Rank: Expert

Posts: 435

Join Date: February 9, 2009

Recent Posts

Hi,

Can you please provide more clarity? All the portlets are embedded in theme.

You want to change portlet title for all the portlets? It won't be possible.

Regards,
Dhrutika
Srividhya Mohanasundaram
RE: Change Portlet Title in Velocity Template
December 21, 2012 10:01 AM
Answer

Srividhya Mohanasundaram

Rank: New Member

Posts: 20

Join Date: June 29, 2012

Recent Posts

I would like to change the title of web content portlet in the template file associated with it.
Dhrutika Vyas
RE: Change Portlet Title in Velocity Template
December 21, 2012 10:05 AM
Answer

Dhrutika Vyas

Rank: Expert

Posts: 435

Join Date: February 9, 2009

Recent Posts

Hi ,

Do you mean Web content display or web content portlet?

Regards,
Dhrutika
Dhrutika Vyas
RE: Change Portlet Title in Velocity Template
December 21, 2012 10:13 AM
Answer

Dhrutika Vyas

Rank: Expert

Posts: 435

Join Date: February 9, 2009

Recent Posts

Hi ,

What ever portlet it is, you can achieve it as below

#if($portlet_id.equals("Your portlet id")) // if instantciable portlet provide instance id
#set ($portlet_title = "xyz")
#end

Add this code in portlet.vm. Hope this helps.

Regards,
Dhrutika