Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • extuid Friend
    #191797

    Good afternoon.
    how to create rss with images?
    I created the rss but I get no pictures, as I can fix this?

    I look forward to your valuable comments ..

    Wall Crasher Developer
    #510648

    Hi extuid,

    There seems no way to override the Joomla to generate custom RSS content.

    Though, you have two options for this problem.
    1. Insert image in your article content (intro text)

    2. Overwrite joomla com_content core file (not recommended)
    By opening componentscom_contentviewsfeaturedview.feed.php

    And add this block code

    if(!empty($row->images) && is_string($row->images)){
    $images = json_decode($row->images);
    $description = '<img src="' . $images->image_intro . '" />' . $description;
    }

    just before

    // Loads item info into rss array
    $doc->addItem($item);

    You also need to do the same with componentscom_contentviewscategoryview.feed.php

    Hope it helps,

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Wall Crasher 11 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum