![]() |
Default Category Display Order I have my categories set to display by 'display order' instead of alphabetically, and 'descending' instead of ascending. The problem is that any time I edit one of the categories' name or description, the sort order is changed to 'ascending' - resulting in my category list being flipped upside down. The fix is to toggle from descending, to ascending, and back in the VBG admin settings. I'm assuming the default in the code is 'ASC' - can anyone help me find where I might change that to 'DESC'? |
I found the code for this at line 74 in gallery/index.php - I tried hard-coding 'ORDER BY displayorder DESC' - but it's still doing the weird behavior I described above. Is anyone else seeing this? |
I take it your modifying code which is probally your issue. The category on index is set by ordering the categories specifically in edit categories in admin using the category order feature. The sort order of photos in a specific category is set default in edit categories for each category the set prelist of sorts you can set them to. You can override any default when viewing a cat of images but that is specifically for one viewing till you close your browser. That is how sorting works in the program. |
The only modification that might affect this area is that I'm using VBSEO seems strange, but if nobody else is experiencing the same, I trust that it is something on my end. |
You are setting a display order in edit categories in admin right ;) If you do your categories list will display as you set it. |
I am numbering them in the display order fields - yes. the issue is that they switch to Ascending anytime I edit any of the categories. Even tho it is set to Descending in 'Modify Settings' - so I have to toggle to Ascending > save, then Descending > save in order to get it back to Descending.. |
I tested and whatever order I set them to in edit categories and hit SAVE DISPLAY ORDER they are saved in that order and even if I edit a category the display stays the same for me so maybe some code alteration your doing is affecting things? You did say you have changed code. |
Ok good to know - must be something w/ VBSEO or modifications I've made to other areas - I'll investigate w/ that in mind. thanks for confirming! |
No problem. |
| All times are GMT -5. The time now is 04:15 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0