![]() |
Default Sort - Printable Version +- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com) +-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html) +--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html) +--- Thread: Default Sort (/thread-153.html) |
Default Sort - Stephen - 01-13-2010 linkrink 2009-12-07 23:49:01 PST Hi, I tried to configure the default sort the file listing (on out.php) to "department" instead of by "ID". I tried changing parameters at functions.php also, but hardly any luck. Could you please help me to configure the default sort for the files on out.php. I want to change defalut sort to "Department". Thanks. jonathanwminer 2009-12-08 05:03:00 PST Look in two places: out.php: > if(!isset($_GET)) { > $_GET['sort_by'] = 'id'; } functions.php: >function my_sort ($id_array, $sort_order = 'asc', $sort_by = 'id') Change "id" to "department" and I suspect it will work. logart 2009-12-08 07:58:00 PST Yes, that is the spot. linkrink 2009-12-08 21:40:52 PST Resolved. Many Thanks. Re: Default Sort - lienkimen - 11-28-2013 Hi, I am using version 1.2.6.2b. I don't see this code (> if(!isset($_GET)) {> $_GET['sort_by'] = 'id';} ) in out.php file. I added this code to out.php and change in function.php but it didn't work. I think you can help me. |