Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
rudier Offline
New Member
 
Posts: 7
Join Date: Mar 2007
I need to sort my Dropdown Menus alphabetically - 09-08-2007, 06:56 AM

I have a problem as some of my dropdown menus are not srted alphabetically and makes it difficult to get to the required data if the list is long. I there a way to change this order by changing some code or template. Although it seems that the templates will not work in this reagrd.

Hope someone can help me with this problem soon.

Thanks

Rudie Raath
   
Reply With Quote
  (#2) Old
craigbrass Offline
Senior Member
 
Posts: 5,922
Join Date: Jun 2005
Location: Cumbria, UK
09-08-2007, 10:09 AM

Can you be more specific as to which drop down menus you are refering to?


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#3) Old
rudier Offline
New Member
 
Posts: 7
Join Date: Mar 2007
09-08-2007, 10:17 AM

Admin CP » Dashboard » Staff » Insert (Group Dropdown)
   
Reply With Quote
  (#4) Old
craigbrass Offline
Senior Member
 
Posts: 5,922
Join Date: Jun 2005
Location: Cumbria, UK
09-08-2007, 10:57 AM

I am not a PHP coder so won't be able to fully help you but I'll point you in the right direction. Look in includes/functions_staff.php for the following :-
Code:
	foreach ($_SWIFT["staffgroupcache"] as $key=>$val)
	{
		$options[$cnt]["title"] = $val["title"];
		$options[$cnt]["value"] = $key;
		$options[$cnt]["selected"] = iif($cnt==0, true, false);
		$cnt++;
	}
All that would be needed would be some way to sort that by the title.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#5) Old
rudier Offline
New Member
 
Posts: 7
Join Date: Mar 2007
10-08-2007, 06:27 AM

Thanks for the info, but I still can see the fuction to sort by......maybe someone else will know?
   
Reply With Quote
  (#6) Old
craigbrass Offline
Senior Member
 
Posts: 5,922
Join Date: Jun 2005
Location: Cumbria, UK
10-08-2007, 09:21 AM

Ok, add the following AFTER the code I posted above :-
Code:
usort($options, create_function('$a,$b','return strcmp($a["title"],$b["title"]);'));


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#7) Old
rudier Offline
New Member
 
Posts: 7
Join Date: Mar 2007
10-08-2007, 09:29 AM

YOU ARE DA MAN!!! Thanks Craig, works like a bomb.
   
Reply With Quote
  (#8) Old
craigbrass Offline
Senior Member
 
Posts: 5,922
Join Date: Jun 2005
Location: Cumbria, UK
10-08-2007, 09:53 AM

Hey, thank the PHP guru that works for me, Andrew!


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#9) Old
craigbrass Offline
Senior Member
 
Posts: 5,922
Join Date: Jun 2005
Location: Cumbria, UK
10-08-2007, 09:55 AM

Actually, coming to think of it, shouldn't this be default operation of Kayako?

I have posted this as a feature request at Admincp -> Staff -> Add -> Sort staff groups alphabetically


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
Reply

Tags
alphabetically, dropdown, menus, sort

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tickets Ticket view -> Sorting -> Sort by multiple fields Chuckler Feature Requests 7 06-08-2008 07:16 PM
What's your experience with changing the order of dropdown menus once in use? richm SupportSuite, eSupport and LiveResponse 3 11-07-2007 10:54 PM
Auto Sort and Filter using Support Centre Siora Duplicate Requests 6 11-06-2007 01:11 AM
Sort Tickets elvia SupportSuite, eSupport and LiveResponse 6 24-10-2006 05:22 PM
Tabbed Menus don't work in IE or Firefox gguarnere SupportSuite, eSupport and LiveResponse 1 31-07-2006 02:58 PM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48