I would like to replace the cached K2 image and sized determined by the RSS Feed parameter,
with the value from Extra Field [14] for each respective item in the feed.
I found the file that I need to edit, but do not know what code to use:
/components/com_k2/models/item.php
Target Code:
$item->description .= '<div class="K2FeedImage"><img src="'.JURI::root().'media/k2/items/cache/'.md5('Image'.$item->id).'_'.$params->get('feedImgSize').'.jpg" alt="'.$altText.'" /></div>';
Desired Results:
$item->description .= '<div class="K2FeedImage"><img src="'.JURI::root().EXTRAFIELD[14].'" alt="'.$altText.'" /></div>';
A cut & paste solution would be much appreciated :)
with the value from Extra Field [14] for each respective item in the feed.
I found the file that I need to edit, but do not know what code to use:
/components/com_k2/models/item.php
Target Code:
$item->description .= '<div class="K2FeedImage"><img src="'.JURI::root().'media/k2/items/cache/'.md5('Image'.$item->id).'_'.$params->get('feedImgSize').'.jpg" alt="'.$altText.'" /></div>';
Desired Results:
$item->description .= '<div class="K2FeedImage"><img src="'.JURI::root().EXTRAFIELD[14].'" alt="'.$altText.'" /></div>';
A cut & paste solution would be much appreciated :)
Edited 9 years 10 months ago by Joe Campbell