Closed (fixed)
Project:
Advanced Forum
Version:
6.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2009 at 13:55 UTC
Updated:
22 Jul 2009 at 16:40 UTC
I realize this isn't specifically an Advc Forum issue... but maybe there's an AF way to do what I'm trying to do.
We have front page articles that are forum enabled and show up in the topics list. But we also created these in advance in no particular order and schedule them.
Problem: the threads/topics list appears to sort by NID rather than created date... so a brand "new" article (as far as time goes) appears down the list a ways from an "older" one.
So... anybody know how I might tamper w/the sort order and make these appear by the created date rather than NID?
Comments
Comment #1
aharown07 commentedI guess I'm not so sure they are sorted by NID... the sort order appears to be almost random, though the headers indicate they are sorted by last reply.
So maybe I've broken something somehow? Just want them to sort by created date by default. In Forums settings, I have it set to Date-Newest first, but that's not what's happening.
Comment #2
michelleNewest first does sort by the most recently modified, including comments added/modified. AF 1.x doesn't add any options beyond what core provides for sorting. (In 2.x, it's a view, so it's a lot more flexible). All I can think of that you can do is go in and fiddle with the "changed" date in the database. Or make them sticky so they're stuck to the top.
Michelle
Comment #3
aharown07 commentedAs far as you know, is there a way to make it sort by created date instead of changed date? That would be ideal for us.
Edit: nevermind... I think I'm to have to take a look at what's happening to the date fields so I understand what I really want here!
Comment #4
michelleNot any way I know of. The sorting options are all on that page where you set it to be newest first.
Michelle
Comment #5
aharown07 commentedI was thinking of hacking something, but I'm still a bit unclear on how the date fields work, so I'll have to get at that first. The date that shows in the Created column is the created date not the changed date, am I right?
Edit: Thing is, if it's sorting by changed date, then if I make an edit and save, it should move to the top... but it doesn't. So I can't really make sense at the moment of what it is sorting by. If I change it sort by most commented, though, that works fine.
Comment #6
michellehttp://api.drupal.org/api/function/_forum_get_topic_order is the order set by the UI. In addition, it adds n.created DESC so newly created topics end up on top.
Michelle
Comment #7
aharown07 commentedThanks. I'm going to take it to the forums from here since it's clear now that AF isn't part of the problem or the solution. :)
Comment #8
michelleYeah, not until 2.x, unfortunately.
Good luck,
Michelle
Comment #9
aharown07 commentedFound a core hack solution... which I don't recommend of course.
Here: http://drupal.org/node/374913#comment-1789536