 | |  | | | ReviewPost How do I...? Wondering how to do something in ReviewPost? |
October 14th, 2006, 02:18 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Oct 2005 Location: Maryland
Posts: 85
| Changing default sort order of showcat.php
One thing I can't find in the 3.32 version is the place to change the default sort of the showcat.php page. In 3.11, it was a simple line of
if ( empty($sort) ) $sortparam = 8;
I tried changing line 201 to:
$sortparam = ( isset($catsortorder) && $catsortorder > 0 ? $catsortorder : 8 );
but that doesn't seem to work. How can I get the default setting to display sorted on number 8? Thanks.
|
| |
October 14th, 2006, 02:51 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
You define a categories default sort order in admin => edit categories
|
| |
October 14th, 2006, 05:03 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Oct 2005 Location: Maryland
Posts: 85
|
That's not what I mean. Maybe I'm asking the question wrong. I want to set a different default to the menubar item that says "Sort By" and gives you a drop down list of the choices like Most Active, Most Recent, etc. I want to set it to $sortid = 8 on all categories.
This is not an admin => edit categories option. You can only set top level categories order in admin => edit categories.
|
| |
October 14th, 2006, 05:10 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Yes it is.
If your default sort order is sort 8 for the categories that is the one that appears when viewing the category
|
| |
October 14th, 2006, 06:41 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Oct 2005 Location: Maryland
Posts: 85
|
I found what I was looking for in the database. In rp_categories, it's the column named sortorder. Changing that to 8 did what I wanted. I did not see a way to do that in the edit categories admin section.
That's not something new in there that didn't take when I upgraded, is it? I see where I can order the display of the top level categories. I see where I can click on "sort subcats" and order the display of the subcats but no way to order the contents of the subcats themselves, which is what I wanted to do.
I was only able to find the value stored in rp_categories in the database. So I managed to change it but wondered if there was an easier way to change it that I didn't find.
|
| |
October 14th, 2006, 09:22 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Right in edit categories I dont see how you missed it
Default Sort Order*:
|
| |
October 15th, 2006, 09:53 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Oct 2005 Location: Maryland
Posts: 85
|
I guess I missed it since it isn't there.
Here's what one line in edit categories shows to me:
WALT DISNEY WORLD DINING (Order: [Delete] [Add Subcat] [Edit] [Empty] [Sort Subcats] [Moderators]
That's all that's there. So what update does that indicate that I'm missing now?
|
| |
October 15th, 2006, 10:08 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
You need to edit the category.
|
| |
February 3rd, 2008, 04:26 PM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Oct 2007
Posts: 8
| Quote:
Originally Posted by Chuck S You need to edit the category. | ok, in
admin => edit categories, Default Sort Order*:
but there is not Sort by "VOTES"
how do I do this?
thanks
|
| |
February 3rd, 2008, 05:07 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Thats because there is not sort by votes as there is no voting system. You can rate a product and in that regard you want to select the sort to be MOST POPULAR. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:18 PM. | |