Needs review
Project:
Feed Element Mapper
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2009 at 20:07 UTC
Updated:
15 Jul 2010 at 12:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
alex_b commentedLook at _feedapi_mapper_get_standard_elements() - the author fields are defined.
Are you looking at a node mapping or a content type mapping. If you're looking at a node mapping, chances are that the feed you're looking at doesn't contain author fields.
Comment #2
gionnibgud commentedRight, I should have explained that better.
I'm creating nodes from feed or csv file and I'd like to map a field from the field (either the user or the uid or both) to author field of the newly created node. I think that at the moment the feed_node uid is been picked up .
Comment #3
alex_b commentedO, so you can't see the node's user id as mapping target? I think this has never been supported.
A uid target could be included in mappers/feedapi_mapper_node.inc
Comment #4
gionnibgud commentedAfter some digging i found out that this issue has something to do with feeapi node module.
I did some small changes in the module that i might post in feedapi's issue queue. For what the mapping is concerned, as you pointed out, it's a minor add to the mapper_node but it wouldn't work without changing something on feedapi_node's function _feedapi_node_save around line 342.
I guess, i'm still looking at this issue.
Comment #5
alex_b commentedComment #6
lelizondo commentedsubscribe
Comment #7
nemchenk commentedI needed to do the same thing (set the author of feed-created nodes based on data from the feed) and attach a patch against 6.x-1.3 which alters feed_mapper_node.inc to create a new field mapper, Author. I will also post a related patch to FeedAPI Node because, as stated in #4, that module overrides the $node->uid in _feedapi_node_save.
EDIT: The partner patch for this at feedapi is http://drupal.org/node/855028