Forums

How to make sortable columns with Custom display mode in CC5

bmarkus 29 Mar, 2015
Hi

how can I make fields sortable in CC5 Custom display mode, or how can I add table header to get the sortable feater like in Table mode?

Thanks... Béla
GreyHead 30 Mar, 2015
Hi Béla,

You can use the Sortables box in the Settings tab.

Note that the entry is Model.field:Model.field e.g. User.id:User.id

Bob
bmarkus 30 Mar, 2015
Hi Bob

thanks for answering, but still it doesn't work for me. Lets see the details. I have three fields, a.iD a.STATUS a.HITS

Column list box:

a.ID:ID
a.STATUS:Status
a.HITS:Hits


Sortables box:

a.ID
a.STATUS
a.HITS


Using Dsiplay type Table it works as expected. I get field content in the table and there is heading with clickable field name.

Changing Display type to Custom and

Header:

<table width=100%>


Body:

<tr><td>{a.ID}</td><td>{a.STATUS}</td><td>{a.HITS}</td></tr>


Footer:

</html>


Columns displayed as expected but no headers. I can add the normal table heading but no sorting. What I'm doing wrong?
This topic is locked and no more replies can be posted.