Tuesday, October 2, 2012

Get Theme image path in WCM Template - Liferay Themes


Create Structure and Template. More Detail. 
 
In your Template add this line :
#set ($Image_path = $request.get("theme-display").get("path-theme-images"))
In Image tag. The image path will go your-theme/image folder then you need set your image path

set your image path:
<img src= "$Image_path/common/add.png"/>

In Style as css:
background:url($Image_path/common/add.png);

 
 
 

No comments:

Post a Comment