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.

General Questions /

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

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

Why is content format coded into theme?


Go to End


2 Posts   600 Views

Avatar
Loopy

Community Member, 20 Posts

21 January 2012 at 10:35am

Is there a theme with a css file that only controls the theme and not the content. By theme I mean background, container, header, menu and footer. There by leaving everything in the middle to the control of the author, i.e. tags <h1>, <h2>, <p> etc, font (style, size, weight etc), content padding, content margins, tables, images and so on?

I have been playing around with SilverStripe for a couple of days now and my first impression was wow this is great. Modifying the theme is easy and straight forward and I felt that this could be perfect for a small site I am planning to build.

I got the theme looking good then I tried to put some content on it. The wysiwyg editor doesn't do what it says on the tin. Investigation suggests that this is because content format is being controlled in the css files for the theme which is overiding the wysiwyg editor.

This is a real disappointment for me because up to that point I felt that this was a light, easy to use cms that was capable of both small simple sites and larger more complex ones.

It seems to be common practice on a lot of cms scripts to put code into the css files that impacts on content aswell as theme (skin). Classic examples are tags and images . I add an image but the editor wont let me add image border. No problem I can switch to HTML mode but that doesn't work either.

Hope I am not being too dense.

Avatar
Willr

Forum Moderator, 5523 Posts

22 January 2012 at 10:22pm

Depends on the theme you're using, BlackCandy (the current default) uses a typography.css between front end and backend to make it a little bit more consistent for authors.