Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Parag Negi
Asset published : Can it have clickable image in Abstract mode
November 11, 2011 2:24 AM
Answer

Parag Negi

Rank: Junior Member

Posts: 71

Join Date: August 31, 2011

Recent Posts

Hi all,

I have a small query.
In asset published i an using abstract mode, which allows image and some content to be displayed in front page. When user click on link, he/she is taken to the article.
That all good.

But, can i have a clickable image aswell.

Please advise.

Thanks and Regards,
Parag Negi
Szymon Gołębiewski
RE: Asset published : Can it have clickable image in Abstract mode
November 11, 2011 3:36 AM
Answer

Szymon Gołębiewski

Rank: Regular Member

Posts: 247

Join Date: June 8, 2009

Recent Posts

Look in your source code for asset-small-image. You will see something similar to this:
1    <div class="asset-small-image">
2        <img alt="" class="asset-small-image" src="<%= HtmlUtil.escape(src) %>" width="150" />
3    </div>

Try changing it to:
1
2    <div class="asset-small-image">
3        <a href="<%= viewURL %>">
4                     <img alt="" class="asset-small-image" src="<%= HtmlUtil.escape(src) %>" width="150" />
5            </a>
6        </div>