Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » SS 3.0.5 valid_elements question, and Layout

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

Page: 1
Go to End
Author Topic: 308 Views
  • Delyk
    Community Member
    1 Post

    SS 3.0.5 valid_elements question, and Layout Link to this post

    I'm trying to get started with SilverStripe and trying to understand how best to work with the TinyMCE editor and how best to start adding content.

    1. Using SS Version 3.0.5 and I've discovered that the Editor restricts the html that can be entered. This can be customized through a "valid_elements" property, but I am not sure where I would set this. Every version seems to be in a different place.

    I added the following line to my _config.php file:

    HtmlEditorConfig::get('cms')->setOptions(array('valid_elements' => "* [ * ]"));

    But the editor is still stripping my CSS style tags, any idea's where to set this?

    2. I would like to layout my pages using a 3 column setup. with Left - Main - Right sections.

    If I can get the valid_elements problem sorted out I can use DIV's for each of the columns and float the Left and Right, is this the preferred way of doing it? Or must I use Tables?

    I have many pages that I would like to setup in this fashion so is this something that I would build a template for? Is there any Docs or examples anyone can point me to?

    David Elyk

  • IOTI
    Community Member
    189 Posts

    Re: SS 3.0.5 valid_elements question, and Layout Link to this post

    Hi Delyk!

    While I can't offer advice on getting the "valid_elements" working correctly, I will offer some advice when it comes to working with SilverStripe. Don't use the CMS to manage layout, its a Content Management System. Use it to manage content, not the layout of your pages!

    Regarding your 2nd question, yes you would build a new template for this. Check out the tutorial here http://doc.silverstripe.org/framework/en/tutorials/. Go through Tutorials 1 through 5 and that should give you a great starting point for creating the template you need. As you get stuck, come back to the forums and ask for help, or log into the irc channel.

    Hope this helps.


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.