Install
Works with Drupal: 8.xUsing Composer to manage Drupal site dependencies
Alternative installation files
Release notes
In this release partial support for multilingual import is added (language target)! Also added are field formatters for the feeds_item field. Other interesting additions are a button to import a feed in the background and the ImportFinishedEvent, dispatched after an import has finished.
New permissions have been added, for allowing users to import feeds in the background.
This release requires at least Drupal 8.5.0. It's also the last release to support Drupal 8.5.x.
Language mapping target added
It is now possible to import content into a specific language, where the language is specified by the source like this:
| title | lang |
|---|---|
| Hello World | en |
| Hallo Wereld | nl |
| Bonjour tout le monde | fr |
Simply map the source specifying the language to the target "Language" on the mapping form. Special thanks to mistermoper for developing this feature.
Support for content translation is still in the works. You can try the patch from #2829283-42: Language support in Feed import.
Feeds item formatters
Thanks to jamesdixon, MegaChriz, jcnventura, vijay.mayilsamy and andypost we now have field formatters for the feeds_item field! The following formats are available:
- GUID of the feed item: displays the GUID value, if you mapped to that property.
- Import timestamp of the feed item: displays the time when the item was imported.
- Rendered feed: displays the feed entity using a view mode.
- Feed ID
- Feed label
- URL of the feed item: displays the URL value, if you mapped to that property.
This fixes the error "the "hidden" plugin does not exist", that was sometimes shown on "Manage display" pages.
Import in background
The feed page now has two action buttons for importing content:
- Import: this will import content directly in the UI.
- Import in background: this will put the import task on a queue. The task will then be executed during cron runs.
Next release
For the next release, we hope to get support for content translation in. We're aiming for a new release in August 2019. Can't make promises for that, as the Feeds team's mainly focus is developing Feeds Migrate, which aims to become the successor of Feeds 8.x-3.x and is built on top of Migrate. The next release will require at least Drupal 8.6.0.
Contributors (21)
MegaChriz, tomasbarej, jamesdixon, jcnventura, vijay.mayilsamy, andypost, thalles, mistermoper, pvbergen, arskiainen, FrancescoQ, bibo, Flodevelop, yurg, westerix, yogen.prasad, benabaird, elsteff1385, T-lo, idebr, Ronak.addweb
Changelog
Issues: 23 issues resolved.
Changes since 8.x-3.0-alpha4:
Bug
- #3034101 by MegaChriz, tomasbarej: Fixed mapping source 0 not working when importing CSV.
- #2939688 by MegaChriz: Some coding standards fixes.
- #2799225 by jamesdixon, MegaChriz, jcnventura, vijay.mayilsamy, andypost: Added field formatters for the feeds_item field to fix the error "the "hidden" plugin does not exist".
- #3028959 by MegaChriz: Fixed errors that occurred when viewing feed listing page with limited privileges.
- #3023743 by thalles, Ronak.addweb, MegaChriz: Fixed show empty feeds table when there are no feeds yet.
Feature
- #2829283 by mistermoper, pvbergen, arskiainen, FrancescoQ, MegaChriz, bibo, Flodevelop, yurg, westerix: Added a mapping target for langcode.
- #2773551 by MegaChriz, benabaird: Added ImportFinishedEvent, dispatched after an import has finished.
- #3029133 by MegaChriz: Add a "Import in background" operation.
- #2948484 by MegaChriz, elsteff1385: Expose a target for path alias even when that field is set read only by pathauto.
Support
Task
- #3047843 by yogen.prasad, MegaChriz: Removed unused FeedsEnclosure class.
- #3015687 by idebr: Replaced deprecated drupal_set_message() with messenger service; replaced drupal_tempnam() and drupal_basename() with file system service.
- #3048339 by thalles: Replaced deprecated service entityManager in file DependencyTest.
- #3048326 by thalles: Replaced LanguageManager by LanguageManagerInterface in FeedsPluginManager.
- #3047707 by thalles: Replaced DateFormatter by DateFormatterInterface in FeedListBuilder.
- #3044983 by MegaChriz: Added test coverage for importing using multiple cron runs.
- #3032822 by MegaChriz: Converted all Simpletest tests to PHPUnit functional tests.
- #3012342 by MegaChriz, T-lo, idebr: Replaced user module PrivateTempStore with core PrivateTempStore.
- #3030879 by MegaChriz: Added test coverage for "feeds_feed_delete_action".
- #3016985 by idebr: Replaced \Drupal\Component\Utility\Unicode::strtolower() with mb_strtolower().
- #3029474 by thalles: Replaced deprecated drupal_get_messages() with messenger service.
- #3026918 by thalles: Replaced deprecated REQUEST_TIME with \Drupal::time()->getRequestTime().
Missing features
This being an alpha release means that not all features from the D7 version of Feeds have been ported yet. You may also run into some bugs.
The most notable missing features are:
- #2867761: Multilingual support (content translation)
- #2938505: Add UI for editing and removing custom (CSV) sources
- Drush commands
- Feeds import preview
- An option to only update existing items (not creating new items)
- Targets for several field types: media field, user password, user roles