| |||||||||||
![]() |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rating: | Display Modes |
(#1)
|
| Member Posts: 259 Join Date: Oct 2007 Location: Jakarta, Indonesia | Sort the KB Javascript menus alphabetically -
01-12-2008, 08:13 AM
In the Staff CP, I want to alphabetize the articles in the Knowledgebase 'Quick Jump' and 'Quick Insert' javascript menus. (I've already got the categories and sub-categories alphabetized.) I believe the key is in function buildKBArticleData() from functions_knowledgebase.php. First, there is this line, which does not seem to affect the sort of the menu: PHP Code: PHP Code: Free: Ticket List & Search | Dept. Display Names Free: Outlook/HTML Tickets| Staff Parser Log Tutorials: SLA System | Template Groups KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 |
| | |
(#2)
|
| Operations Manager Posts: 6,270 Join Date: Jan 2006 Location: England, UK |
01-12-2008, 10:11 AM
I have not tested this, but I have modified the query so that it joins the two tables kbarticlelinks and kbarticles together, ordering the two by the respective article subject (ascending - a to z). The SQL works, I am not sure if it will in place of the existing code. SQL: Code: SELECT * FROM swkbarticlelinks, swkbarticles WHERE swkbarticlelinks.kbarticleid = swkbarticles.kbarticleid ORDER BY swkbarticles.subject ASC; PHP Code: -------------------------------------------------------------------
|
| | |
(#3)
|
| Member Posts: 259 Join Date: Oct 2007 Location: Jakarta, Indonesia |
01-12-2008, 01:01 PM
Quote:
PHP Code: Free: Ticket List & Search | Dept. Display Names Free: Outlook/HTML Tickets| Staff Parser Log Tutorials: SLA System | Template Groups KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 | |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sort Sort Sort | NC Software | SupportSuite, eSupport and LiveResponse | 5 | 15-12-2008 02:16 PM |
| Sort ascending (Alphabetically) department lists | joshuah | Developers & Code | 1 | 15-08-2008 03:54 AM |
| I need to sort my Dropdown Menus alphabetically | rudier | SupportSuite, eSupport and LiveResponse | 8 | 10-08-2007 08:55 AM |
| Admincp -> Staff -> Add -> Sort staff groups alphabetically | craigbrass | Will Implement (V4) | 0 | 10-08-2007 08:54 AM |