Revision: 23385
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 5, 2010 11:10 by jhafner
Initial Code
Go to /components/com_k2/models/item.php line 368 and replace the Description section with this: $item->feedimage=''; if (JFile::exists(JPATH_SITE.DS.'media'.DS.'k2'.DS.'items'.DS.'cache'.DS.md5("Image".$item->id).'_S.jpg')) $item->feedimage = '<img align=left style=padding-right:5px; src='.JURI::root().'media/k2/items/cache/'.md5("Image".$item->id).'_S.jpg>'; if ($params->get('feedText')=='1'){ $item->description=$item->feedimage.$item->fulltext; } else if ($params->get('feedText')=='2'){ $item->description=$item->feedimage.$item->introtext.'<br/>'.$item->fulltext; } else { $item->description=$item->feedimage.$item->introtext; }
Initial URL
http://community.getk2.org/forum/topics/additional-details-for-the-k2?commentId=3536014%3AComment%3A19606
Initial Description
Credit goes to B. Kemler. I'm simply saving this for future reference.
Initial Title
Adding Images to the RSS feed in K2 2.2
Initial Tags
joomla
Initial Language
PHP