1. News Highlighter
  2. Wednesday, 11 December 2013

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?
Responses (2)
Sorry, it is not possible.
  1. more than a month ago
  2. News Highlighter
  3. # 1
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="/forums/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.

  1. more than a month ago
  2. News Highlighter
  3. # 2

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

This forum is archived

This forum has been archived. Please use JoomShaper official support system.