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

aharown07’s picture

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

michelle’s picture

Status: Active » Fixed

Newest 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

aharown07’s picture

As 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!

michelle’s picture

Not any way I know of. The sorting options are all on that page where you set it to be newest first.

Michelle

aharown07’s picture

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

michelle’s picture

http://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

aharown07’s picture

Thanks. 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. :)

michelle’s picture

Yeah, not until 2.x, unfortunately.

Good luck,

Michelle

aharown07’s picture

Found a core hack solution... which I don't recommend of course.
Here: http://drupal.org/node/374913#comment-1789536

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.