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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

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

Theme code name Balance


Go to End


7 Posts   2626 Views

Avatar
insic2.0

Community Member, 16 Posts

10 February 2009 at 9:24pm

Edited: 10/02/2009 9:25pm

I run a search and i cant find a topic about this theme.

My question is how do they implement the multi editor in the admin side. I mean how to add or how can we do something like this. and the Image uploader for that particular page. This is a very nice feature by the way. But the thing is how to do it? Anybody can point or give a link.

Thanks for the help in advance.

Avatar
Nivanka

Community Member, 400 Posts

11 February 2009 at 2:11am

hi - this can be achieved by introducing new variables to your pages, as customizing the back end forms by editing the getCMSFields function.

read this and you will find more about what I am talking about.

http://doc.silverstripe.com/doku.php?id=tutorial:2-extending-a-basic-site&s=getcmsfields

Avatar
insic2.0

Community Member, 16 Posts

11 February 2009 at 2:23am

thanks, but I already read that link you give me. Maybe I do need to go deep more into it.

Avatar
insic2.0

Community Member, 16 Posts

11 February 2009 at 2:26am

and i dont think if its still how to do it in the latest version.

Avatar
Nivanka

Community Member, 400 Posts

11 February 2009 at 6:05am

okay ad this method to your mysite/code/Page.php Page class and see what happens

function getCMSFields(){

$fields = parent::getCMSFields();

$fields->addFieldToTab("Root.Content.Main", new HtmlEditorField("myhtml"));

return $fields;

}

and add a node to the db array in the same class,


"myhtml" => "HTMLText"

after that run the db/build?flush=1 and then refresh your CMS and see what happens

Avatar
insic2.0

Community Member, 16 Posts

17 February 2009 at 10:49pm

thanks for your help. this very useful.

Avatar
Nivanka

Community Member, 400 Posts

17 February 2009 at 11:20pm

welcome!