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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Blog archive problem found and fixed


Go to End


1348 Views

Avatar
Bruce B

Community Member, 164 Posts

5 November 2008 at 1:06pm

I have loaded the blog module and the basic functioning was OK but I hit a snag.

The monthly archive links didn't work. The error was:
"Column 'Date' in where clause is ambiguous"

I changed the blogentries function in blogholder.php so $dateCheck used `BlogEntry_Live`.Date rather than just Date to identify the relevant posts.

Why I needed to to do this when it presumably works for everyone else, I have no idea.

The end result is here:
http://nfaw.org/blog/

It still needs more work: an intro statement and the side menu when you are in an entry displays in the wrong order. That may happen today if I can find the time.

cheers
bruce