Notable

C: Christine Sætre

Christine Sætre

Tiny recipe for alphabetized contacts in Joomla

2009-09-11_2135

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:

  1. components/com_contacts/views/category/  (or)
  2. 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’);

Open Source Matters - Home to Joomla


Based on Design by: Derek Punsalen. Powered by WordPress