Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

how to Show k2 item image on News Highlighter

Featured Lock Resolved Issue
Hi,

Please let me know how can I show k2 item image on News Highlighter?

I added below code to default.php on tmpl folder:
$image='<img class="sp-nh-image" src="'. modNewsHighlighterHelper::getText($item->image) .'" alt="" />' ;
But it doesn't works

Which file(s) should I edit? how?
Thanks

2 Answers

Ehsan Riyadh

More than a month ago #Permalink
Sorry, it is not possible.

Omid

More than a month ago #Permalink
But Ehsan, I done it.
I just added below code at line 49 on default.php in tmlp folder:

$image='<img class="sp-nh-image" src="/media/k2/items/cache/'.md5("Image".modNewsHighlighterHelper::getText($item->id)).'_xs.jpg" alt="" />' ;


Also added $image variable to line 54:

$text = $image.$title.$textintro.$date;


check the attached file.

Cheers


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 129
Sifat

Sifat

Total Accepted Answers: 81
Toufiq

Toufiq

Total Accepted Answers: 66
Pavel

Pavel

Total Accepted Answers: 6
Sohan

Sohan

Total Accepted Answers: 5

114

Templates

293382

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us