Closed (fixed)
Project:
User Import
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2007 at 21:03 UTC
Updated:
14 Jul 2012 at 19:22 UTC
I'm using nodeprofile on a few of the sites I maintain, and recently needed to import a large number of users into one of these sites.
user_import currently supports mapping CSV fields into Drupal's core profiles, but not into nodeprofile CCK fields.
I hacked user_import to support nodeprofile, and have attached my diff from the user_import-5.x-1.x-dev. This code solved my problem, but is at best alpha-quality and leaves a lot of unaddressed issues... but may be a useful start.
Currently this patch does the following:
Currently this patch doesn't do the following:
| Comment | File | Size | Author |
|---|---|---|---|
| user_import-nodeprofile.patch | 11.76 KB | smokris |
Comments
Comment #1
mlncn commentedI hereby nominate smokris for Drupal Hero of the Month (TM)
Also, this patch applied cleanly to User Import's 5.x-1.3 release, which I think is identical to development at the moment.
benjamin, Agaric Design Collective
Comment #2
najibx commentedI am using Bio as oppose to nodeprofile.
i don't normally cross posting (http://drupal.org/node/211602#comment-723294), but looking at your patch, I realize that such integration with bio module is not as simple. Any tips?
Comment #3
tomhung commentedAny idea on including the LDAP field "LDAP User DN:" as well?
Comment #4
afinke commentedThanks so much for this patch, it was just what I needed. One issue/question, and I don't know if this is specific to the nodeprofile patch, or also true for User Import in general: Token replacement does not seem to work for imported nodeprofiles.
That is, I'm using Auto Nodetitle to set the nodeprofile node title to the value of one of my CCK fields. The token replacement in Auto Nodetitle works fine when adding the node via the normal edit form, but when I import a user using User Import, the created nodeprofile's title is set to the field name rather than the value, i.e., the replacement doesn't happen. Any guidance as to an easy way to make this happen? This may be a question better put to the Token module author, but I thought I'd start here. Thanks.
Comment #5
hansrossel commentedI have the same problem, all nodeprofile titles are "ant". There is an issue for auto nodetitles (http://drupal.org/node/218634) that points to http://drupal.org/node/148530 as the problem.
When I edit and save manually a nodeprofile the title gets filled in with its correct token value, so I'm wondering if it would be possible to open and save all nodeprofiles in a programatically way (with node_save()?) and get all titles updated.
Hans
Comment #6
najibx commentedAs oppose to my comment in #2, I am now using nodeprofile :-)
Can I have the sample CSV file for this patch ? What the fields header ..
How about new CCK field? how can it modify the patch according to my new CCK or my CCK field naming?
Comment #7
modctek commentedtagging this so I don't lose track of this...I need this very exact thing to port users and their profile data to nodeprofile
Comment #8
robert castelo commentedUser Import 5.x-2.x-dev supports nodeprofile import, and has an API designed to enable integration with other modules.
Comment #9
ntripcevich commentedI wonder how hard it would be to add support for importing CCK fields for the Content Profile module to the D6-dev version of User Import?
According to this post Content Profile reads NodeProfile settings directly so one possible work-around might be to import the users into a D5 site with NodeProfile then upgrade the site to a D6 site for use with Content Profile. Any suggestions are welcome. Thanks!
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.