[support] possible to update existing field type?

Walt Daniels wdlists at gmail.com
Sun Jun 1 13:54:00 UTC 2014


Changing field types is not easy. The best is to add a new field of the
right type, copy the data to it and then delete the old field. There is no
UI for copying from one field to another so you have to do that by writing
code or using PhpMyAdmin.


On Sun, Jun 1, 2014 at 8:21 AM, Ashley Hall <knowledges33ker at gmail.com>
wrote:

> I have a custom field on my user profile pages where users can enter their
> Twitter user name. When the user's profile is rendered (either on the user
> profile page itself or via views) I would like to rewrite this field so
> that it links to the user's twitter profile following the pattern
> http://twitter.com/[field_twitter_name].
>
> I discovered the twitter username project on DO yesterday (
> https://drupal.org/project/twitter_username) and this would help me
> accomplish the objective, especially for new users. However, we currently
> have ~900 active users on our site.
>
> Is there a way to create a new field and update its tables with the
> existing user's twitter names? Or is there a way to change the field type
> from it's current setting of "Text field" to the new type made available by
> the twitter username project "Twitter username"?
>
> Any help would be greatly appreciated.
>
> Ashley
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20140601/9a6e6bce/attachment.html 


More information about the support mailing list