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

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
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, 05: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: 7,541
Join Date: Jun 2005
Location: Cumbria, UK
09-08-2007, 09: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)

Click here for Kayako Software Development

My Addons: BlackBerry Ticket Client for Kayako - Windows Mobile Live Support Client for Kayako
   
Reply With Quote
  (#3) Old
rudier Offline
New Member
 
Posts: 7
Join Date: Mar 2007
09-08-2007, 09:17 AM

Admin CP » Dashboard » Staff » Insert (Group Dropdown)
   
Reply With Quote
  (#4) Old
craigbrass Offline
Senior Member
 
Posts: 7,541
Join Date: Jun 2005
Location: Cumbria, UK
09-08-2007, 09: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)

Click here for Kayako Software Development

My Addons: BlackBerry Ticket Client for Kayako - Windows Mobile Live Support Client for Kayako
   
Reply With Quote
  (#5) Old
rudier Offline
New Member
 
Posts: 7
Join Date: Mar 2007
10-08-2007, 05: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: 7,541
Join Date: Jun 2005
Location: Cumbria, UK
10-08-2007, 08: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)

Click here for Kayako Software Development

My Addons: BlackBerry Ticket Client for Kayako - Windows Mobile Live Support Client for Kayako
   
Reply With Quote
  (#7) Old
rudier Offline
New Member
 
Posts: 7
Join Date: Mar 2007
10-08-2007, 08:29 AM

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

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


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

Click here for Kayako Software Development

My Addons: BlackBerry Ticket Client for Kayako - Windows Mobile Live Support Client for Kayako
   
Reply With Quote
  (#9) Old
craigbrass Offline
Senior Member
 
Posts: 7,541
Join Date: Jun 2005
Location: Cumbria, UK
10-08-2007, 08: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 http://forums.kayako.com/showthread.php?t=13203


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

Click here for Kayako Software Development

My Addons: BlackBerry Ticket Client for Kayako - Windows Mobile Live Support Client for Kayako
   
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
Ticket view -> Sorting -> Sort by multiple fields Chuckler Tickets 7 06-08-2008 06: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 09:54 PM
Auto Sort and Filter using Support Centre Siora Archive 6 11-06-2007 12:11 AM
Sort Tickets elvia SupportSuite, eSupport and LiveResponse 6 24-10-2006 04:22 PM
Tabbed Menus don't work in IE or Firefox gguarnere SupportSuite, eSupport and LiveResponse 1 31-07-2006 01:58 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78