1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » Archive widget doesn't work
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 4003 Views |
-
Re: Archive widget doesn't work

29 July 2009 at 1:44pm
Lestatron, your fix worked great for me, thanks.
-
Re: Archive widget doesn't work

27 August 2009 at 11:31pm
Ultimate you should probably try to debug the 2) BlogHolder.php function BlogEntries() (Line 199) using echo for $year and $month. See if the url params are correct. And be sure you haven't deleted the sub if and if else which creates date string for the entries query!
-
Re: Archive widget doesn't work

28 September 2009 at 8:38am
bruceb fix will work until the year number hits 2010. Basically you have to add a new allowed action for every year you want to be able to query with archive widget. So it isn't very nice and solid solution...
-
Re: Archive widget doesn't work

28 September 2009 at 11:13am
My fix was not intended to be permanent, just until a new version of the blog module was released. At this stage, I'd probably add '2010' just to be safe. Its a quick fix for those with less confidence in editing multiple files but it does mean you will have to go back to those clients' sites when the new module is released.
Lestatron's fix, however, means that you don't have to go back and update published projects when the new blog version is released.
That raises an issue for another thread - how do people handle subsequent version updates once a project is completed and handed over to the client? Maintenance and upgrades for 12 months built into the original quote?
I should mention that I've added 'SearchForm' to the list of allowed actions in blogholder.php as well - otherwise search doesn't work within the blog.
-
Re: Archive widget doesn't work

28 September 2009 at 9:05pm
Yep! bruceb I totally agree with you. I should have written this text in my post, but I'm too lazy.
I added the 'SearchForm' action fix to my solution as well.
Thanks for the hint! -
Re: Archive widget doesn't work

4 November 2009 at 5:05am
@lestatron - Great fix - simple yet effective!!
-
Re: Archive widget doesn't work

19 November 2009 at 4:44pm
For me the page just refreshes - nothing changes
I downloaded the latest blog module and that one does not save the widgets on the widget tab.
Any other ideas?
| 4003 Views | ||
| Go to Top | Next > |






