Hi,

I created this small patch for enabling entityreference fields as a feed source.
I know there is another issue about better feeds integration, but that seems to focus on the targets side.

This one only focusses on the source, so you can select the id of a entityreference field on the parent feed node.
And this works... ;)

Can someone test this?

Cheers!
-- Tom

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

betz’s picture

Status: Active » Needs review
FileSize
1.36 KB

and the patch...

Status: Needs review » Needs work

The last submitted patch, 1831328-entityreference-feed-source.patch, failed testing.

kclarkson’s picture

Am I okay to test a patch that has failed ?

betz’s picture

Is this one ok?
Created with drush iq, so i guess should be...

betz’s picture

Status: Needs work » Needs review
Rustan’s picture

This does not work for me on current dev. Nothing breaks, I just do not get the imported fields together with the rest of the data.

Edit: I think I'm using it wrong, I wanted the other patch.

held69’s picture

Issue summary: View changes

Thanks Tom for this patch!

Tested on 7.x-1.1 and 7.x-1.x-dev

Tried importing rss feeds as groupcontent.
Mapping seems to work: Nodes seem to get imported as groupcontent.
Inhereting the groupaudience field.

However getting a warning:

Notice: Undefined index: node in entityreference_feeds_parser_sources_alter() (line 14 of C:\wamp\www\dev\sites\all\modules\entityreference\entityreference.feeds.inc).
Warning: in_array() expects parameter 2 to be array, null given in entityreference_feeds_parser_sources_alter() (line 14 of C:\wamp\www\dev\sites\all\modules\entityreference\entityreference.feeds.inc).
jweirather’s picture

In case anybody else is looking for this functionality, I found what I was looking for in the Feeds Entity Reference module. In my case, I was able to map Organic Groups reference fields from a source node to target feed items using the Feeds Entity Reference module. See also my comment in the second link for more info.

https://www.drupal.org/project/feeds_entityreference

https://www.drupal.org/node/2069201#comment-9448275

SocialNicheGuru’s picture

thanks @jweirather. I wasted hours trying to find a work around.