SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

How to convert a Textfield to Textarea field

5 years 11 months ago #118272 by SimonW
Hi,
I have a Textfield created earlier and now I wonder how to convert it to Textarea (Long Text) field. Of course, I can simply delete the field and create a new one but I have many contents already added. I wonder is there any easy and safe way of doing so as it is a live site ?

Please Log in to join the conversation.

5 years 11 months ago #118276 by steve
Hi Simon

I'm afraid there is no simple way because these fields have different database structures.

What I would probably do is this:

1) Export the content type to CSV using: www.drupal.org/project/views_data_export
2) Delete the textfield and create the new Textarea
3) Reimport the content using Feeds: www.ostraining.com/blog/drupal/feeds/
The following user(s) said Thank You: SimonW

Please Log in to join the conversation.

5 years 11 months ago #118351 by SimonW
Thanks Steve for your solution !

Please Log in to join the conversation.

5 years 11 months ago #118356 by Valentin
Replied by Valentin on topic How to convert a Textfield to Textarea field
Hi Simon,
I'm glad Steve suggestion was helpful for you.

Let us know if we can help you in something else

Kind regards,
Valentín

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: SimonW

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!