Re: possible to update existing field type?

Walt Daniels <[email protected]>
Newsgroups gmane.comp.php.drupal.support
Message-ID <CALZ-9dWSOtQTEC=_91Ehx3BSj=yxD+BkDEjpv_b1De7hjVnzoA@mail.gmail.com>
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 <[email protected]>
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/ ]
>

-- 
[ Drupal support list | http://lists.drupal.org/ ]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.