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 .

CommentFileSizeAuthor
search-sort-hidden-2.patch1.03 KBzeroj

Comments

Bèr Kessels’s picture

please do not use one line ifs
and does !isset($hidden_sort_column) not always default to TRUE? or am i just being stupid?

zeroj’s picture

please do not use one line ifs

OK

does !isset($hidden_sort_column) not always default to TRUE?

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.

zeroj’s picture

I have raised an issue against Drupal core to fix a minor presentation issue that is a side affect of this functionality.

Bèr Kessels’s picture

I missd that loop. I see it now. sorry. and thanks for clarifying this.