Projects ⇒ Bugs ⇒ #605: FAQ index doesnt sort ⇒ CPG Dragonfly™ CMS
Bug #605 FAQ index doesnt sort
Project: Dragonfly 9.0.3 -> 9.3 Category: *Module Issues
Submitted: Thursday, August 04, 2005 (09:21:05) Modified: Monday, October 03, 2005 (02:59:56)
Status: Closed Assigned to:
PHP Version: 5.0.3 HTTPD Server: Apache 2.0

View/Vote Add Comment

by: derek
Description:
------------
The FAQ doesn't sort the categories.

the index.php in modules/FAQ/ will only sort on question and not on categories:

$order = (isset($_GET['sort']) && $_GET['sort'] == 'desc') ? 'question DESC' : (isset($_GET['sort']) ? 'question ASC' : 'id ASC');

You have to put the query above to line 26 (under if() on line 25)

then put:
$order = (isset($_GET['sort']) && $_GET['sort'] == 'desc') ? 'categories DESC' : (isset($_GET['sort']) ? 'categories ASC' : 'id ASC');

under line 64 (else {)

Now it will work correctly
by: DJMaze
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make CPG-Nuke 9.0.3 -> 9.1 better.
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español