开发者

How to convert from Content Profile module back to core profile?

Reason being, I'd like to eventually upgrade to Drupal 7 and make use of what I hear 开发者_如何学编程is the new core "Profile 2". I'm not fond of user data being stored as node data. Is there a reasonable way to get any data from Content Profile and re-integrate that with the core profile? Or would it entail something manual with the raw database using MySQL queries?


Not an easy way AFAIK.

For these kind of things I've hand to do them by hand. With content_profile_load, user_load, profile_load_profile, and profile_save_profile the code to convert it would be pretty short and easy.

I would stay with what you've got on Drupal 6 because migrating to Drupal 7 will likely be a pain no matter which system you're using.


Profile2 is a contributed module, not core, see http://drupal.org/project/profile2

So maybe it does or will support upgrading from content_profile directly. And even if not, it might not be more complicated to migrate back to profile.module and then to profile2.module.

Looking at http://drupal.org/node/1068446, there might be no official migration path from profile to profile2 yet.

Note that you don't necessarly need profile2 or even profile.module since D7 now has the ability to add Fields to users. That doesn't give you all the functionality of content_profile/profile2 though.


I realize this is an old thread, but incase it helps someone else out, I managed to migrate my content profile data to profile2 using the method here. I posted my own version of the code as a module to be edited in this comment. So if anything, check that thread out, specifically those two comments and hopefully you'll figure it out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜