Gossamer Forum
Home : Products : Gossamer Links : Discussions :

"New" links not going to top of category page.

Quote Reply
"New" links not going to top of category page.
I am running the final release, and for some reason the "new" links are not being pushed to the top of the category page, instead they are being pushed to the end.

This should be working, this is how I have build_sort_order_category set up:

EditorPick,isNew,isPopular,Title

Before I upgraded, the sort order was working fine. I also noticed that the categories are not being flagged when there are new links inside.

Thx.



Rob Bartlett
AAA Internet Publishing, Inc.
http://www.AAAInternet.com
Quote Reply
Re: "New" links not going to top of category page. In reply to
Hi,

This one's pugdogs fault. =) I had the Yes/No field declared as:

ENUM ("Yes", "No")

so Yes = 0 and No = 1. This makes sorting easy as it produces Yes first then No (as it goes 0 to 1). However, pugdog pointed out that logically No == 0 and Yes == 1, which is true.

Now the sorting order is strange though, and to get what you want, you need to do:

EditorPick,isNew DESC,isPopular DESC,Title

to get them in descending order. =)

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: "New" links not going to top of category page. In reply to
Kewl, that did the trick. =)

Rob Bartlett
AAA Internet Publishing, Inc.
http://www.AAAInternet.com