| |
iselendis |
Posted: Mon Mar 03, 2008 5:57 am Post subject: Maintaining Order of Projects List View |
|
|
|
Hi Ben
How do I ensure the order of projects appearing in the summary list view doesn't keep changing.
If I click into a specific project, and return back to the project list, the order keeps changing. I haven't worked out what field the default view is ordered by.
What I would like is for it to maintain an alpa ascending order of projects each time my client logs in so as to not confuse them when they return to the list if they click into a specific project and subsequently return to the list. |
|
| |
|
 |
Ben |
Posted: Mon Mar 03, 2008 6:04 am Post subject: |
|
|
|
At the moment you need to modify the default ordering to have it default to alpha. We're working on having it remember a users sort position, just waiting on a budget to get it done . |
|
| |
|
 |
iselendis |
Posted: Mon Mar 03, 2008 6:19 am Post subject: |
|
|
|
Thanks for the prompt response...I take it that I am not able, at this stage, to control the default order?
Out of interest, what field is the projects list currently relying on to order them? |
|
| |
|
 |
Ben |
Posted: Mon Mar 03, 2008 6:25 am Post subject: |
|
|
|
|
| |
|
 |
rslinct |
Posted: Mon Jul 07, 2008 10:50 pm Post subject: Default order |
|
|
|
Custom hacks are at your own risk so be careful if you are not familiar with coding of mySQL or PHP or HTML.
Of course, I am not sure what Ben might think of offering custom hacks here. I am sure he will let me know if this is an acceptable post or not.
Look in system\modules\projects\index.php, search for the Ordering comment code and change the code to the column sort you want set as the default. in my example, I sort by defualt by the END date.
It is a custom hack that will get over-written if you ever do an update from Ben through normal updates.
I keep a separate list of custom hacks so I can redo them if I update and that feature has still not yet been implemented.
//ordering
switch (RequestQueryString('order')) {
case 'progress' : $order = 'progress'; $orderby = 'PercentComplete'; break;
case 'priority' : $order = 'priority'; $orderby = 'Priority'; break;
case 'status' : $order = 'status'; $orderby = 'Status'; break;
case 'budget' : $order = 'budget'; $orderby = 'TargetBudget'; break;
case 'owner' : $order = 'owner'; $orderby = 'Owner'; break;
case 'starts' : $order = 'starts'; $orderby = 'StartDate'; break;
case 'ends' : $order = 'ends'; $orderby = 'EndDate'; break;
case 'project' : $order = 'project'; $orderby = 'ProjectName'; break;
case 'client' : $order = 'client'; $orderby = 'ClientName'; break;
default : $order = 'ends'; $orderby = 'EndDate';
} |
|
| |
|
 |