The ability to use /flexinode/table/ to view a table of nodes is very handy. A site I am working on needs to be able to sort the table by a column that is not displayed on the page.
The attached patch allows /flexinode/table/&order= to order the table by .
| Comment | File | Size | Author |
|---|---|---|---|
| search-sort-hidden-2.patch | 1.03 KB | zeroj |
Comments
Comment #1
Bèr Kessels commentedplease do not use one line ifs
and does !isset($hidden_sort_column) not always default to TRUE? or am i just being stupid?
Comment #2
zeroj commentedOK
No, its in a loop, so after the first time that all conditions are true, it wont be entered again, and the last condition (a strcmp) doesnt need to be performed. It is an optimisation that works for me; I dont mind dropping it.
Comment #3
zeroj commentedI have raised an issue against Drupal core to fix a minor presentation issue that is a side affect of this functionality.
Comment #4
Bèr Kessels commentedI missd that loop. I see it now. sorry. and thanks for clarifying this.