Mapper for $node->uid

gionnibgud - January 23, 2009 - 20:07
Project:Feed Element Mapper
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

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

#1

alex_b - January 23, 2009 - 20:27
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

gionnibgud - January 23, 2009 - 21:16

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

alex_b - January 23, 2009 - 21:42

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

gionnibgud - January 26, 2009 - 21:54

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

alex_b - May 19, 2009 - 13:20
Title:Mapping the author» Mapper for $node->uid

#6

lelizondob - June 16, 2009 - 17:02

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.