22976 Posts in 11702 Topics by 2826 members
|Go to End|
16 July 2010 at 10:39am
i have small problem with my site
i've created another page with additional box for custom stuff :
$fields->addFieldToTab('Root.Content.Custom', new TextAreaField('Stuff'));
and the problems are that
- silverstripe adds a lot of CDATA
- automaticly remove "</script" from content
- replacing eg \" with \"" etc
how to prevent this from happening ?
16 July 2010 at 8:36pm
If you would like to access the raw value of a field from a template you can use the RAW getter: $Stuff.RAW should do it if I understand your problem correctly.
20 July 2010 at 5:11am
litle bit better but most important problems still appear like :
"</script>" is automaticly removed from content and is stored like that in database
26 July 2010 at 8:22am
somebody can help me ?
|Go to Top|