Jump to:

1835 Posts in 1139 Topics by 554 members

Blog Module

SilverStripe Forums » Blog Module » BUGFIX: 404 on ./date/... for BlogTree Pages.

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 861 Views
  • jaredkipe
    Avatar
    Community Member
    16 Posts

    BUGFIX: 404 on ./date/... for BlogTree Pages. Link to this post

    Some of you may have noticed, that date archive widget and the BlogTree pages do not work well together. Specifically the url fragment such as '/blog/date/2011/04' doesn't work if 'blog' is a BlogTree instance, but DOES work if it is a BlogHolder instance.

    Inside BlogTree.php and the BlogTree_Controler class. You need to add 'date' to the $allowed_actions array.

       static $allowed_actions = array(
          'index',
          'rss',
          'tag',
          'date'
       );

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: BUGFIX: 404 on ./date/... for BlogTree Pages. Link to this post

    Sounds like this should be fixed in the core download so make sure you either submit it as a pull request to the module's github page (https://github.com/silverstripe/silverstripe-blog) or at least as a ticket on open.silverstripe.org.

    Thanks!

  • jaredkipe
    Avatar
    Community Member
    16 Posts

    Re: BUGFIX: 404 on ./date/... for BlogTree Pages. Link to this post

    Actually, it seems that the github version has this simple fix already. But still the current download version has the bug. So I guess this is for people that are just downloading it from the mail module section on silverstripe.org, or have a version in production that exhibits this bug.

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