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.

Blog Module /

Discuss the Blog Module.

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

Blog holder page blank


Reply


2 Posts   957 Views

Avatar
wackzingo

Community Member, 1 Post

25 August 2011 at 1:47pm

Edited: 25/08/2011 6:29pm

I apologize in advance if I'm missing something obvious but I just started using SilverStripe a few days ago.

I created a theme using my own template. It's simple with just the base_tag and $content and $form variable/tags. The structure looks like this:

mysite.com\themes\blackcandy
mysite.com\themes\blackcandy_blog
mysite.com\themes\mytheme\
- mytheme\css\
- mytheme\images\
- mytheme\js\
- - mytheme\templates\
- - templates\Page.ss

When using the blackcandy as the default theme for the site, the blog page appears to work fine. However, when I switch to my theme and select the blog link from the menu, the blog holder page is blank. I noticed the [url=https://github.com/silverstripe/silverstripe-blog/blob/master/README.md]ReadMe page[/url] says the blog module is setup to use the \themes\blackcandy_blog\ directory by default. What do I need to do to make the blog work with my theme?

Thanks in advance.

Avatar
lanks

Community Member, 61 Posts

23 September 2011 at 6:38pm

Hi

If your new theme must have the templates for the blog module. If you look inside \themes\blackcandy_blog\ you will see all of the standard blog templates that you must have for your custom theme.

The standard way to do this would be to create a directory inside themes called \themes\mytheme_blog\.

When you say blank if you mean the whole page is completely white then this means that there is an error. To view the error message check out the "white screen of death" at LeftandMain.com [url=http://www.leftandmain.com/silverstripe-tips/2010/09/08/8-common-silverstripe-errors-explained-and-solved/]here[/url]

Liam