Hi I would like to order the table fields by a column but without displaying that column.

In other words I would like to add a order option above the table.

Can I do it with views ?

thanks

Comments

superbaloo’s picture

Add the field, make the field hidden then add a sort on that field ?

inforeto’s picture

To add the sort on the field click on the icon next to "Style: Table" (in basic settings) which show the options to configure that style.
Once there also remember to mark the checkbox "Override normal sorting if click sorting is used" if it is needed.

aneuryzma’s picture

uhm, I realized my question wasn't well written:

I want to add a sort field above the table, check the image:

http://dl.getdropbox.com/u/72686/sort.png

I only see options to order the table on the top of each column.

thanks

dagmar’s picture

This is an exposed sort. We are working on this in this issue #228510: Exposed Sorts

You can help to test patchs, to inlcude this functionality into views.

aneuryzma’s picture

ok thanks for the link

Otherwise I could work with html css to move the header of a column on top and make the column invisible ?

inforeto’s picture

You can choose an excluded column from the select box of a visible column.
Then you can apply css or theme the view.

dagmar’s picture

Status: Active » Fixed

I think the original issue is fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.