0

My client makes extensive use of cases, and the case ID is an important identifier. CiviCRM tends to downplay the case ID, however, often placing more emphasis on the case subject, which isn't as helpful to us.

The default results list display when searching for cases does include the case ID in the 'Client' column (along with client name and phone number), and so this results list is not sortable by case ID. If I wanted to edit the template file that describes this results listing, how could I go about that in order to have the case ID in its own column, and be a sortable column?

We also use the listing of cases visible from the 'Cases' tab of a contact's summary screen. This presents a similar listing of case, but in this instance the case ID is not shown at all. Again, how would I go about changing this display in order to have the case ID in its own column, and be a sortable column?

I've spent a fair bit of time digging into this so far, and to be honest I'm struggling even to identify the correct template files to customise (it feels a bit like going down the rabbit hole in Alice in Wonderland!)

1 Answer 1

1

For both pages you're talking about it's templates/CRM/Case/Form/Selector.tpl, but what's interesting is that I know case id used to be there. Browsing the code history it looks like it was removed around v4.5, but without investigating further I can't say why. But take a look at 4.4 for example to see how it used to be. It's not sortable there, but might get you started. https://github.com/civicrm/civicrm-core/blob/4.4/templates/CRM/Case/Form/Selector.tpl

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.