CCK fields, Views, and Sortable column
I need sortable column headers, ideally using CCK and Views. So, I created 3 CCK fields. Then I created a page View using the "table" View Type. In Views, only one CCK field, the "address" CCK extension module, provides a dropdown for Sortable. In other words, only one field (address) is sortable. I need multiple fields. Is this a bug, or (more likely) am I doing something wrong? Thanks! Sean
I figured this out, so in case my solution helps somebody else... My CCK field type was 'Node Reference.' It appears that Views (tablesort_sql() too?) does not make the Node Reference field type sortable. Sean
Sean Wingert wrote:
I figured this out, so in case my solution helps somebody else... My CCK field type was 'Node Reference.' It appears that Views (tablesort_sql() too?) does not make the Node Reference field type sortable.
Actually, nodereference.module doesn't advertise the nodereference as sortable. And it's wise to do so. What the nodereference displays is not necessarily what the field would sort on; so the sort would appear to be broken.
participants (2)
-
Earl Miles -
Sean Wingert