Closed (fixed)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2010 at 15:14 UTC
Updated:
21 Mar 2012 at 13:46 UTC
Jump to comment: Most recent file
I made a plugin wich makes the user import aware of custom declared user-profile fields.
It checks wether the profile module is activated, and will then list all custom declared profile fields so you are able to map to these fields.
I tested it with:
And used the Feeds XML Parser
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | feeds-783098.patch | 7.68 KB | elliotttf |
| #3 | feeds-783098.patch | 2.52 KB | elliotttf |
| FeedsExtendedUserProcessor.inc_.zip | 2.48 KB | DoubleJB |
Comments
Comment #1
alex_b commentedInteresting. This could be a patch to FeedsUserProcessor. No reason why we would use a separate processor here. Only thing I am worried about is the upgrade path to Drupal 7.
Have you thought about that?
Comment #2
alex_b commentedAnd of course, if to be committed to Feeds project, this functionality will need tests.
Comment #3
elliotttf commentedHere's a patch that does the same thing as DoubleJB's file.
Still need to write a test for this, if someone else wants to jump in though go ahead.
I haven't looked into the profile differences in D7 (just started playing with it last week) so I can't speak to that, but this does appear to be working for me in D6.
Comment #4
alex_b commented#3:
- This functionality should be broken out into a mapper (e. g. like mappers/taxonomy.inc).
- Needs tests.
Comment #5
elliotttf commentedOk, here's the same idea with the profile fields split out into their own mapper and a really simple test to make sure it works.
Comment #6
alex_b commentedThank you for the solid patch, especially the tests helped review it fast.
I did some minor code style cleanup and committed it:
http://drupal.org/cvs?commit=382106
Comment #8
alibama commentedi'm trying to map fields to user profiles with the latest dev version and getting nowhere... if this was committed where did it go to? i've tried this http://drupal.org/node/1060230#comment-5758044 too with no luck... any assistance greatly appreciated
Comment #9
alibama commentedfwiw went back to the drawing board = i had been using feeds because it allowed clever mapping into organic groups via a nice patch, so i used user import to update the profile fields and leave the OG stuff alone and it seems to be working.. a bit of a hack, but for anyone else in a bind it works