It looks like the current SyndicationParser.php only pulls in the item "Description' field which is essentially a summary of the content. There is no way to pull in the full content of the feed item. Attached is a patch which adds this field, using the following code:
Add to $item:
->set('content', $entry->getContent())
Add to 'getMappingSources()':
'content' => [
'label' => $this->t('Content (Atom)'),
'description' => $this->t('Content of the feed item.'),
'suggested' => ['body'],
'suggestions' => [
'targets' => ['body'],
'types' => ['field_item:text_with_summary' => []],
],
],
Comments
Comment #2
mariagwyn commentedComment #3
mariagwyn commentedAdding patch file.
Comment #4
megachrizSetting to "Needs review", so the testbot will evaluate the patch. (Note that there is one broken test currently in the 8.x-3.x branch, so 1 test failure may be ignored.)
Comment #6
megachrizI guess this breaks the test Drupal\Tests\feeds\Unit\Feeds\Parser\SyndicationParserTest. The test failure for Drupal\Tests\feeds\Unit\Feeds\Target\DateTimeTest is a know failure and can be ignored.
Comment #8
twistor commentedI did change from 'Content (Atom)' to 'Content' since the content element also applies to RSS. Our parser will even grab the description if the RSS item doesn't have a content element.
Comment #9
twistor commented