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, Ed, biapar, Willr, Ingo, swaiba

Creating a site with content blocks

Go to End

13 Posts   6023 Views


Community Member, 6 Posts

31 July 2009 at 6:00pm

That is nice - do share the code - we are working on something where we want to stack up a bunch of content areas one on top the other on both left and right side - with the ability to control the content in them. The content in any of the rendition blocks being any combination of words, graphics and widgets. Your code will help to serve the basis of this.


Community Member, 19 Posts

4 August 2009 at 2:48pm

Edited: 04/08/2009 2:59pm


got something like this already sorted.
will release as open source soon.

need to write documentation and a few minor bugfixes.

Attached Files

Community Member, 18 Posts

16 January 2010 at 9:21am

Hi Ian

I have just started using silverstripe and am aiming to produce the exact layout you got to work which looks great - can I please take you up on your offer of sharing the code? I am new to CSS and this would really help - thanks!


Community Member, 32 Posts

16 January 2010 at 12:45pm

Edited: 16/01/2010 12:50pm

Yes, happy to share it. I have attached it as a zip file here. The code consists of the themes folder, which is mostly .ss template files, css, images and so on, and the php class files and JavaScript in the mysite folder. The class files show how the Content Blocks and articles are put together. The cb.js file is used along with the styles in layout.css to handle the construction of the round-cornered boxes.

I have only included the minimal in-line comments in the code, but if you want to know specifics post the questions and I will try to answer them here.

I should mention that I have used this layout on my live site now: and it is working out well.

Good luck and if you improve it (shouldn't be difficult) share it back!


Attached Files

Community Member, 6 Posts

31 January 2010 at 11:20pm

Hi - we have finished doing this one way - lots of blocks - left and right - each with independent control

Go to Top