Results 1 to 2 of 2

Thread: RSS with thumbnails

  1. #1
    New user
    Join Date
    04-30-10.
    Posts
    6

    Default RSS with thumbnails

    How can i add a thumbnail image into the RSS feed from news articles? I am using contao core RSS system and also have tried [summarizeFeeds] extension.
    Thanks

  2. #2
    New user
    Join Date
    04-30-10.
    Posts
    6

    Default Re: RSS with thumbnails

    For future reference, here is my solution:
    I edited system/module/news/News.php around line 133 and changed
    $objItem->description =(($arrArchive['source'] == 'source_text') ? $objArticle->text : $objArticle->teaser);
    to:
    Code:
    $TempImage=(($objArticle->source == 'external') ? '' : $strLink).$this->getImage($objArticle->singleSRC, 150,null);
    			$objItem->title =$objArticle->headline;
    			$objItem->description = '[img]'.$TempImage.[/img]".(($arrArchive['source'] == 'source_text') ? $objArticle->text : $objArticle->teaser);
    As you noticed i used an extra variable $TempImage
    If anybody finds a better solution, feel free to post it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •