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

building a site....problem


Reply


3 Posts   872 Views

Avatar
Tigerpie

Community Member, 10 Posts

16 May 2009 at 8:13am

Hi,
I'm trying to build this site
http://www.heckmondwikepanthers.co.uk/
I have installed the blog module, but it doesnt look any good as the blog page is to big for the site....the middle content section does not change its size so it is all over the shop.

To get around this I thought i could hide the blog page and just use the CMS to add stuff and have the new blog entries display on the left hand side in the box titled "Blog Spot"

Problem is, I have no idea how to do this.

I tried using an iframe to diaply the blog page, but that just displays the whole webage.......

Can any body help please?

If there is a way to do this withouth using the blog extension then this is cool to....

Thanks for any help, and I can try and provide any more information needed.

Cheers

Avatar
Willr

Forum Moderator, 5513 Posts

16 May 2009 at 10:48am

have the new blog entries display on the left hand side in the box titled "Blog Spot"

Have alook how the BlogHolder template works in the blog. You can try something like this in your box template

<!-- Assuming your blog has the URL 'blog' -->
<% control Page(blog) %>

<!-- Get 3 Entries -->
<% control BlogEntries(3) %>
$Title
<% end_control %>

<% end_control %>

Avatar
Tigerpie

Community Member, 10 Posts

19 May 2009 at 3:12am

Hi Willr,
I tried your suggestion but it doesnt work.
I am not sure why.
I have re-installed the blog module several times but with no luck.

My blog URL is (i am testing on my home server and everything seems to be working)
http://192.168.0.3/silverstripe/blog/

I have tried adding the full url to the line <% control Page(blog) %>
but if i change the word "blog" then i get the following error

Parse error: parse error in C:\WINDOWS\Temp\silverstripe-cacheC--wamp-www-Silverstripe\.cacheC..wamp.www.Silverstripe.themes.callofduty2.callofduty2.templates.Page.ss on line 229

I am adding your code to the page.ss file in the following folder
C:\wamp\www\Silverstripe\themes\callofduty2\callofduty2\templates

This is the file i have been editing when i want to change the name / title on the 2 boxes to te left and right of the main content box.