Project:Feed Element Mapper
Version:6.x-1.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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

Comments

#1

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.

#2

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 .

#3

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

#4

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.

#5

Title:Mapping the author» Mapper for $node->uid

#6

subscribe

#7

Version:6.x-1.x-dev» 6.x-1.3
Status:postponed (maintainer needs more info)» needs review

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

AttachmentSize
uid_mapper.patch 1.59 KB
nobody click here