![]() |
category sort listing issue
Hi,
A Sub Cat 2I have modified categories.tpl navigation in order to list top category, and subcat liek in example: Main Cat A A Sub Cat 1 A Sub Cat 3 The below code works great for this, but the only problem with this code is that it does not respect the sort order i have placed on the categories. I know that the functionality is working since it is listed in sorted order on the actual category page. So if anyone can figure out how to have the below code respect the category sort order? Code:
{{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} |
Re: category sort listing issue
try commenting out include/categories.php
around line 171 uasort($all_categories, "func_categories_sort"); but, not sure this is what you are looking for. Try it, it not works, roll back it. |
Re: category sort listing issue
I had a similar issue, tried commenting it out and got a ascending list of categories. What does this function do? will it affect something else?
|
Re: category sort listing issue
Quote:
It will not affect anything i believe |
Re: category sort listing issue
how do I change to descending direction? do you know?
|
Re: category sort listing issue
uasort() function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant.
|
Re: category sort listing issue
Brilliant! Thanks a million, Dongan!
|
All times are GMT -8. The time now is 10:54 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.