Forums

Add sortable columns with a Custom List

momentis 12 Jun, 2012
I have a connection that I have to use a Custom List instead of the Auto Listing feature. I would like to make some of the columns in the list sortable, just like in the Auto List. Is there an easy way to do this?
Max_admin 13 Jun, 2012
Hi,

Just like the auto listing, if your field is in the "Sortable fields" box, then it will show a sorting clickable link when you use it in the "Header" box, example:

Using
{Article.title}
in the header and having "Article.title" in the sortable fields will show the sorting link.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
momentis 13 Jun, 2012
I am confused (sorry!).

I have the following fields that I want to be sortable:

staff_firstname, staff_lastname, staff_building

My header looks like this:

<body><table class="alsd-list" width="98%" border="0">
  <thead>
  <tr>
    <td>Last Name</td>
    <td>First Name</td>
    <td>Building</td>
    <td>Email</td>
    <td>Website</td>
    <td>Downloads</td>
  </tr>
  </thead>


I have the three fields above listed in "Sortable Fields". How do I implement your suggestion?
momentis 14 Jun, 2012
I cannot get this to work.
momentis 19 Jun, 2012
Can someone please help me with this?

Rick
Max_admin 19 Jun, 2012
Hi Rick,

Apologies for not responding sooner!

If you want this field to be sortable:
staff_firstname


Then please add it to the "List view fields" box and to the "sortable fields" box and use it in the header section as:
{staff_firstname}


The header label will be retrieved from the label assigned to the field in the "List view fields" box.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
momentis 19 Jun, 2012
Ahh, that's perfect! Thanks!!!!

Rick
This topic is locked and no more replies can be posted.