Jump to:

1383 Posts in 492 Topics by 521 members

Themes

SilverStripe Forums » Themes » Theme code name Balance

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1620 Views
  • insic2.0
    Avatar
    Community Member
    16 Posts

    Theme code name Balance Link to this post

    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.

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Theme code name Balance Link to this post

    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

  • insic2.0
    Avatar
    Community Member
    16 Posts

    Re: Theme code name Balance Link to this post

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

  • insic2.0
    Avatar
    Community Member
    16 Posts

    Re: Theme code name Balance Link to this post

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

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Theme code name Balance Link to this post

    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

  • insic2.0
    Avatar
    Community Member
    16 Posts

    Re: Theme code name Balance Link to this post

    thanks for your help. this very useful.

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Theme code name Balance Link to this post

    welcome!

    1620 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.