Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Laahari P
How to change image on classic theme
May 10, 2012 9:15 AM
Answer

Laahari P

Rank: New Member

Posts: 1

Join Date: May 10, 2012

Recent Posts

I am trying to display an image on the classic theme. I have tried to write VM code in the portal-normal.vm file to display the image but it dosent get displayed. Please help let me know where all we need to change the code inorder to display the images.Any help will be appreciated.

#set( $address = "../images/common/add.png" )
<img src="$address" />
Priyanka Dhingra
RE: How to change image on classic theme
May 11, 2012 9:08 PM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

i had the same problem so,
Alternatively, i added my image in custom.css
Amit Doshi
RE: How to change image on classic theme
May 15, 2012 12:08 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 544

Join Date: December 29, 2010

Recent Posts

Hi Guys,

You can use $images_folder and get the path upto the image.

Please check below link for more information.

http://www.liferay.com/community/wiki/-/wiki/Main/Access+Objects+from+Velocity

Thanks & Regards,
Amit Doshi