Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Help with my install


Reply


6 Posts   1312 Views

Avatar
Govpatel

Community Member, 13 Posts

18 April 2009 at 6:12am

Edited: 21/04/2009 2:19pm

I have installed 2.3.1 and I do not see the editors like I see in the demo website where there are editors for left middle and right is there anything I am missing on my install.

Avatar
Govpatel

Community Member, 13 Posts

18 April 2009 at 12:35pm

Edited: 21/04/2009 2:19pm

This is the image of the admin on my install of silverstripe 2.3.1 that has only content editor not same as the demo that has left and right editors on the page

Attached Files
Avatar
Sigurd

Forum Moderator, 628 Posts

19 April 2009 at 2:07pm

Edited: 21/04/2009 2:19pm

I'm not sure what the left and right areas are that you are referring to. It sounds like you just want to add another HTML editor field to page.

If you look at http://doc.silverstripe.com/doku.php?id=tutorial:2-extending-a-basic-site you can see how to do this. Look for the section explaining this code:

function getCMSFields() {
$fields = parent::getCMSFields();

$fields->addFieldToTab('Root.Content.Main', new CalendarDateField('Date'), 'Content');
$fields->addFieldToTab('Root.Content.Main', new TextField('Author'), 'Content');
   
return $fields;
}

But what you want is to add an HTMLEditorField: http://doc.silverstripe.com/doku.php?id=HTMLEditorfield

Avatar
Govpatel

Community Member, 13 Posts

19 April 2009 at 3:54pm

Edited: 21/04/2009 2:19pm

I have been investigating and think those extra editors in demo are the tree boxes on the home page on this page http://demo.silverstripe.com/
To get the same what files do I have to modify

Avatar
Sigurd

Forum Moderator, 628 Posts

21 April 2009 at 2:18pm

Edited: 21/04/2009 2:19pm

Ok, I see what you mean. Yes, you need to write PHP code to add three more text editors on the Homepage class.

Avatar
Sigurd

Forum Moderator, 628 Posts

21 April 2009 at 2:19pm

I've moved this away from install issues because it is not an install problem at all.