Hello everyone,
I am not very familiar with SilverStripe but have been asked to do some maintenance on a site using SilverStripe for a client.
The client's SilverStripe site has a homepage (HomePage.php / HomePage.ss, extends Page), that has a "Main" section, under which there is an editable TextField.
The problem is, whenever the client goes to add more than 50 characters to this TextField, everything after the 50th character gets truncated. The TextField itself does not have a $maxLength set, so it's possible to actually input more than 50 characters, but when they click "Save" and reload the page, only the first 50 characters remain.
I believe I've narrowed the problem down to the fact that the "static $db" array entry for this TextField is set to a "Varchar," and as I understand it if no length is specified for the Varchar then it takes a default length of 50 characters.
My problem is, if I change the $db array entry for this TextField to something else -- for example, "Varchar(200)" or "HTMLText", nothing appears to actually change. I upload the modified HomePage.php file, go into the CMS, and put more than 50 characters into the text field and click save, but it continues to be truncated to 50 characters regardless of what I changed the $db array entry to.
I suspect that the database itself needs to also be modified, but I have no idea where the data for this TextField would be stored in the database to modify it.
Does anyone have any ideas as to what I am missing, or which table (if any?) this data is stored in, or where I should look from here? Being unfamiliar with SilverStripe and how it stores data in the database, I am a little stumped. I would appreciate any help or direction you can give!
Thanks for your time,
Josh