? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
2 Aug 2016

Pull Request for Issue #8198 .

Summary of Changes

Publishing RSS feeds from Joomla doesn't include the intro_image field

Testing Instructions

Publish a news feed for a category and ensue that at least one article in the category uses the intro_text field

This code is provided by @nunoleite

avatar joomla-cms-bot joomla-cms-bot - change - 2 Aug 2016
Category Front End Components
avatar brianteeman brianteeman - open - 2 Aug 2016
avatar brianteeman brianteeman - change - 2 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Aug 2016
Labels Added: ?
avatar jeckodevelopment jeckodevelopment - test_item - 2 Aug 2016 - Tested successfully
avatar jeckodevelopment
jeckodevelopment - comment - 2 Aug 2016

I have tested this item successfully on a26cd72


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11402.

avatar nunoleite
nunoleite - comment - 2 Aug 2016

Thanks for adding this code.

I just wanted to add that this should be implemented in this file too:
/components/com_content/views/featured/view.feed.php

This will add the same to the rss newsfeed from a blog of featured articles.

Something like this:

            $db->setQuery($query);
            $row->fulltext = $db->loadResult();

//line commented by nunoleite
//          $description = ($params->get('feed_summary', 0) ? $row->introtext . $row->fulltext : $row->introtext);
// code added by nunoleite, to add intro image to the newsfeeds
$description = '';
$obj = json_decode($row->images);
$introImage = ( isset( $obj->{'image_intro'} ) ) ? $obj->{'image_intro'} : '' ;
if (isset($introImage) && ($introImage != "")) {
  $image = preg_match('/http/', $introImage)? $introImage : JURI::root().$introImage;
  $description = '<p><img src="'.$image.'" /></p>';
}
$description .= ($params->get('feed_summary', 0) ? $row->introtext . $row->fulltext : $row->introtext);         
// end of code added by nunoleite

            $author      = $row->created_by_alias ? $row->created_by_alias : $row->author;

            // Load individual item creator class

I have this implemented on my sites and is working.

Thanks
Nuno Leite

avatar viocassel viocassel - test_item - 3 Aug 2016 - Tested successfully
avatar viocassel
viocassel - comment - 3 Aug 2016

I have tested this item successfully on a26cd72


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11402.

avatar brianteeman
brianteeman - comment - 3 Aug 2016

I will update for the other views this afternoon

avatar brianteeman
brianteeman - comment - 3 Aug 2016

added the featured content feed


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11402.

avatar brianteeman brianteeman - alter_testresult - 8 Aug 2016 - jeckodevelopment: Tested successfully
avatar brianteeman brianteeman - alter_testresult - 8 Aug 2016 - jeckodevelopment: Not tested
avatar truptikagathara truptikagathara - test_item - 10 Aug 2016 - Tested successfully
avatar truptikagathara
truptikagathara - comment - 10 Aug 2016

I have tested this item successfully on 9a39f9b


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11402.

avatar brianteeman
brianteeman - comment - 13 Aug 2016

@nunoleite can you test this please so we can get it merged


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11402.

avatar JamalTailored JamalTailored - test_item - 16 Aug 2016 - Tested successfully
avatar JamalTailored
JamalTailored - comment - 16 Aug 2016

I have tested this item successfully on 9a39f9b


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11402.

avatar jeckodevelopment jeckodevelopment - change - 16 Aug 2016
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 16 Aug 2016

RTC please


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11402.

avatar joomla-cms-bot joomla-cms-bot - change - 16 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 16 Aug 2016
Labels Added: ?
avatar jeckodevelopment jeckodevelopment - change - 16 Aug 2016
Status Ready to Commit Pending
Labels
avatar jeckodevelopment
jeckodevelopment - comment - 16 Aug 2016

Removing RTC - Fix needed


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11402.

avatar joomla-cms-bot joomla-cms-bot - change - 16 Aug 2016
Labels Removed: ?
avatar brianteeman
brianteeman - comment - 17 Aug 2016

Pull requests to my branch are welcome. It's not my pr I just created it
with user submitted code

fe34a4e 18 Aug 2016 avatar brianteeman typo
avatar brianteeman
brianteeman - comment - 20 Aug 2016

I made the changes to add the blank lines - can someone put the RTC back?

avatar rdeutz rdeutz - change - 20 Aug 2016
Status Pending Ready to Commit
avatar rdeutz rdeutz - change - 20 Aug 2016
Milestone Added:
avatar rdeutz
rdeutz - comment - 20 Aug 2016

set RTC and milestone


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11402.

avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 20 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-20 11:47:44
Closed_By rdeutz
avatar rdeutz rdeutz - close - 20 Aug 2016
avatar rdeutz rdeutz - merge - 20 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 20 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2016
Labels Removed: ?
avatar brianteeman
brianteeman - comment - 20 Aug 2016

@rdeutz thanks for merging. You put it in 3.6 but previously you said 3.7?

avatar rdeutz
rdeutz - comment - 20 Aug 2016

ups you are right, I need to revert this

avatar rdeutz
rdeutz - comment - 20 Aug 2016

@brianteeman will you make a redo of the PR or should I?

avatar brianteeman
brianteeman - comment - 20 Aug 2016
avatar rdeutz
rdeutz - comment - 20 Aug 2016

@brianteeman thanks and sorry, I shouldn't do three things at ones :-)

Add a Comment

Login with GitHub to post a comment