Default sort "...
 
Notifications
Clear all

Default sort "alphabetical" in browse menus

7 Posts
4 Users
0 Reactions
1,385 Views
(@angelike-riddle)
Posts: 46
Eminent Member
Topic starter
 

My site lists stories by "Most Recent" by default, but in the sort menus it seems to automatically go to alphabetical, so that any time I do a sort I have to remember to change the "Sort" option. How can I change the default "Alphabetical" to "Most Recent" or (better yet) to no value at all so that the box reads "Sort" in the same way the ratings dropdown menu reads "Ratings." It's odd that this sort option is the only one that automatically selects a value.

browse.php has the following lines (306) that I think is relevant to what's happening:

		if(!in_array("sorts", $disablesorts)) $tpl->assign("sortmenu", "<select class="textbox" name="sort">n<option 
value=''>"._SORT."</option><option value="alpha"".(!$defaultsort ? " selected" : "").">"._ALPHA."</option>n<option
value="update"".($defaultsort == 1 ? " selected" : "").">"._MOSTRECENT."</option>n</select>n");

 
Posted : 23/07/2009 4:07 pm
(@aquaanimus)
Posts: 82
Trusted Member
 

I was trying to figure this out as well.  My default is set to sort as "alphabetical" too.  It happens when I hit "categories." or just "browse."  I would like the sort to come up as what is most recent instead of alphabetical.  I tried to change the default sort options in my user preferences, but that did not make a difference.  😕


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 26/07/2009 2:17 pm
(@babaca)
Posts: 722
Member Moderator
 

So when you go to Admin->Settings->Display Settings do you have it set as "Most Recent" or "Alphabetical"?


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 27/07/2009 10:17 am
(@aquaanimus)
Posts: 82
Trusted Member
 

I don't know about Angel, but I have mine as "most recent."


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 27/07/2009 10:52 pm
(@tammy)
Posts: 2577
Member Moderator
 

What do you have in your PERSONAL settings when you go to edit your preferences.  Your personal settings will override the site default. 


 
Posted : 28/07/2009 6:45 pm
(@angelike-riddle)
Posts: 46
Eminent Member
Topic starter
 

That's kind of weird... Is it possible to have an option so that users can just stick with the site default unless they specifically change it?


 
Posted : 31/07/2009 2:45 pm
(@tammy)
Posts: 2577
Member Moderator
 

See that's the thing. It WAS the site default when it was set in their personal profile.  You just changed the site default.  The settings that were already in the personal preferences are still there though.


 
Posted : 31/07/2009 4:36 pm
Share: