Looking for a reasonable quote on someone who can customize the Drupal 5 Views so table fields are sortable and can override any sorts built into the views if a user clicks on the table heading.

See this thread: http://drupal.org/node/351731

Views 2 has this functionality, I think.

Thanks!

Comments

heytrish’s picture

In views (drupal 5.x), create a view with the following:

View Type: Table View

Fields: Select fields you want to display, then under the 'Sortable' column, select 'Yes'.

Now, some fields are not sortable, such as: node body, taxonomy terms for xx, and thats all I can find. Just remember, not all fields can be sortable, especially fields with multiple values.

jazzdrive3’s picture

Yes I did this, but if you have any other sort defined in the view, the table field will not sort, because they do not override the default view sort.

See example here: http://bowlinggreenbragdrag.com/browse/restaurants-food

But in Views 2, there is a checkbox that allows table fields to override the default filter sort. I need this or something similar implemented for Views.

jazzdrive3’s picture

So does no one know how to do this? I desperately need this functionality.

Thanks.

ferrangil’s picture

depending on the number of the sorts, you can duplicate the original view and give it an order in there...

jazzdrive3’s picture

What will that do? The problem is that table sorts DO NOT WORK and do not sort if you define a regular sort in the view. The regular sort overrides every table column sort you try to do. Again, look at the example at http://bowlinggreenbragdrag.com/browse/restaurants-food

The sorting of the entries ignores any column that you click, no matter what you click. This has been confirmed by the maintainer of views to be an issue, that table sorts do not override regular sorts. That's why views 2 has a checkbox that allows you to determine whether or not table sorts override regular sorts.

I need someone to code this functionality (or something similar, I don't really need the checkbox) into views and am willing to pay for this views code customization. This customization will then be given back to the community. I won't hold it back.

ferrangil’s picture

You can remove the links for sorting each column as they don't work. You can then duplicate the view giving them a sort by rating, or a sort by whatever, and then place some links to each (newly created) view. This will allow you to display that table but sorted by rating for example... it's probably not the best solution but that's what you can do right now...