1792 Posts in 588 Topics by 560 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 807 Views |
-
HELP! HTMLText field not displaying in CMS :(

3 April 2009 at 11:48pm Last edited: 3 April 2009 11:49pm
Hi all,
Having trouble trying to a get WYSIWYG field working on my job postings board... When I use a Textareafield its loads okay but I have to manually type HTML fields. .. I'm looking to get a basic HTML editor in there with just the common text formatting. Followed instructions to this point:
class JobBoard extends DataObject {
static $db = array(
'JobTitle' => 'Varchar',
'JobDescription' => 'HTMLText', // Declared HTMLText when building the custom database table....etc
$fields = new FieldSet(
new ReadonlyField('ID','id #',$id),
new TextField('JobTitle', 'Job Title', 'New Job'),
new HtmlEditorField("JobDescription", "Job Description"), // Declared HTMLEditor field (but shows nothing in CMS)...etc
$form->loadDataFrom(array(
'ID' => $currentJob->ID,
'JobTitle' => $currentJob->JobTitle,
'JobDescription' => $currentJob->JobDescription, // Load data into it - which works fine on Textareafield...etc
Fresh pair of eyes would be very much appreciated;
I'm using silverstripe 2.2.2.
Cheers
Steve
| 807 Views | ||
|
Page:
1
|
Go to Top |

