Feature request since it seems to me that this is not implemented yet and default fields for author does not appear anymore in the UI (or is it just me? doh).

thanks

CommentFileSizeAuthor
#7 uid_mapper.patch1.59 KBnemchenk

Comments

alex_b’s picture

Status: Active » Postponed (maintainer needs more info)

Look 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.

gionnibgud’s picture

Right, 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 .

alex_b’s picture

O, 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

gionnibgud’s picture

After 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.

alex_b’s picture

Title: Mapping the author » Mapper for $node->uid
lelizondo’s picture

subscribe

nemchenk’s picture

Version: 6.x-1.x-dev » 6.x-1.3
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.59 KB

I 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