Jump to content
thirty bees forum
  • 0

SmartBlog - sort by date?




is there any chance someone over here can help me with the SmartBlog module? (It already came with the template, that's why I didn't use TB Blog)

I recently wrote some blog entries about stuff that happened during the last year. Of course their dates were totally wrong/many posts had the same date. So I went to de database and adjusted it over there. But now I have a post from September, then one from August and then November, because they are still sorted by ID.

Do you know how I could change this? I took a look at some of the module's PHP-files, but couldn't find something that clearly said "order by ID/Date". Also I'm not sure wheater it's sorted by some controller, or directly in a template file...

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Thanks a lot, that works! (Sorry, can't mark your post as the correct answer)

Or for others that might have the same issue: Change it to ORDER BY p.created

Also take a look at the file BlogPostCategory.php and change it over there, if you're working with categories.

Now all that's missing is the line where to change it for tags, but that's not that important for me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...