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   1265 Views

Avatar
Govpatel

18 April 2009 at 6:12am (Last edited: 21 April 2009 2:19pm), Community Member, 13 Posts

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

18 April 2009 at 12:35pm (Last edited: 21 April 2009 2:19pm), Community Member, 13 Posts

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

19 April 2009 at 2:07pm (Last edited: 21 April 2009 2:19pm), Forum Moderator, 628 Posts

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

19 April 2009 at 3:54pm (Last edited: 21 April 2009 2:19pm), Community Member, 13 Posts

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

21 April 2009 at 2:18pm (Last edited: 21 April 2009 2:19pm), Forum Moderator, 628 Posts

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

21 April 2009 at 2:19pm Forum Moderator, 628 Posts

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