Sep 11, 20090
Tiny recipe for alphabetized contacts in Joomla
RE: Contact component – Joomla
Seems like I looked forever for a simple recipe on changing the default sort order of a contact listing to alphabetical. Found only a post for an old version of Joomla. So simple when you find the variable (but I myself still find the Joomla “loop” a little confusing).
In the view.html.php file located in:
- components/com_contacts/views/category/ (or)
- templates/templatename/html/com_contact/category/(#2 is the alternative file location, if you have created an customized view for the extension in your template)
change the filter_order on line 40 from ‘cd.ordering’ to ‘cd.name’
// Selected Request vars
$filter_order = JRequest::getVar(‘filter_order’, ‘cd.name’, ”, ‘cmd’);
$filter_order_Dir = JRequest::getVar(‘filter_order_Dir’, ‘ASC‘, ”, ‘word’);




Recent Comments