Jump to:

22997 Posts in 11844 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » building a site....problem

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: 752 Views
  • Tigerpie
    Avatar
    Community Member
    10 Posts

    building a site....problem Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: building a site....problem Link to this post

    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 %>

  • Tigerpie
    Avatar
    Community Member
    10 Posts

    Re: building a site....problem Link to this post

    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.

    752 Views
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.