Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » Link from the page "blog entry" to the parent "blog holder"

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 1453 Views
  • NtM
    Avatar
    Community Member
    39 Posts

    Link from the page "blog entry" to the parent "blog holder" Link to this post

    1. I need to have a link to the parent blog holder from every blog entries. How would I do that?( without using full path $BreadCrumbs )

    2. When I add the side bar "Blog archive" to the page, It appears on the page (on the my blog holder page http://mysite/my-blog/) fine.

    But when I click on one of the "month" on that side bar, I get an error page (http://mysite/my-blog/2009/11)

    "Website Error
    Forbidden

    The website server has not been able to respond to your request."
    What is the problem?

    thank you!

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Link from the page "blog entry" to the parent "blog holder" Link to this post

    1. I need to have a link to the parent blog holder from every blog entries. How would I do that?( without using full path $BreadCrumbs )

    Well since the Blog entries will be children on the blog holder you can do $Parent.Link on the BlogEntry.ss template to get a link to the parent page (blog holder)

    For your 2nd issue this is probably due to this issue - http://open.silverstripe.org/ticket/4482. Try downloading the daily build of the blog module (its on the blog module page). To see what the actual error is put the site into devmode (Director::set_environment_type("dev"); in your _config.php file) you will get an actual error message instead of that generic error message

  • NtM
    Avatar
    Community Member
    39 Posts

    Re: Link from the page "blog entry" to the parent "blog holder" Link to this post

    I get an error "Action '2008' isn't allowed on class BlogHolder_Controller" if I click on the year 2008.

    willr, do you mean downloading Latest trunk build here: http://www.silverstripe.org/blog-module/ and replace all the files in the blog folder?

  • NtM
    Avatar
    Community Member
    39 Posts

    Re: Link from the page "blog entry" to the parent "blog holder" Link to this post

    Everything works, thank you !

    1453 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.