Navigation

 ·   Wiki Home
 ·   Wiki Help
 ·   Categories
 ·   Title List
 ·   Uncategorized Pages
 ·   Random Page
 ·   File Upload
 ·   Uploaded Files
 ·   Recent Changes
 ·   RSS
 ·   Atom
 ·   What Links Here

Active Members:

Search:

 

Create or Find Page:

 

View HowTo Change the Field Length for the Body Field

Question: How can I change the field length for the body field? When I paste in a really long post, not everything is being saved.

Answer: The body field is by default set to a field type of TEXT. Under normal conditions, that field type is normally big enough for your content. But for when you need to change the field to be larger, there are two ways to do it.

Disclaimer:

This code snippet is provided as an example.
There is no warranty that this code will do anything more than fill up space on your web server.
Use at your own risk.

The first way involves using PHPMyAdmin and changing the field type for TEXT to MEDIUMTEXT



The second method is a direct query to the database.

ALTER TABLE `exp_weblog_data` CHANGE `field_id_2` `field_id_2` MEDIUMTEXT NOT NULL