Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Sort order on homepage

Quote Reply
Sort order on homepage
Hi all,

I have looked through the forum on changing the sort order of the category listings on the homepage. They all seem to say that is uses $Links{'build_sort_order_category'} but changing that seems to have no effect on the order of the category listings on the homepage.

Can someone tell me how the categories actually get ordered. I looked in sub build_home_page in nph-build.cgi. No Order by in the Select statement.

I checked the site_html_print_cat in HTML_Templates and the only sorting function I can find there is foreach $cat (sort @names) - This sorts alphabetically using the Name field of the category.

In nph-build.cgi I tried adding to the select statement Order by Description - No luck
I removed the sort from (sort @names) That seemed to be a pretty random.

So I'm at loss. I don't want to do any special sorting, just sort by some given field in the Category database. Anybody have any ideas where to look?

Thanks.

Subject Author Views Date
Thread Sort order on homepage klangan 1197 Jul 29, 2000, 1:45 PM
Post Re: Sort order on homepage
Stealth 1143 Jul 29, 2000, 2:26 PM