3

I have a taxonomy term reference field on a node. On the "node/add" page I would like to sort the terms by "due date" (a field added to that vocabulary).

  • 3
    Taxonomy terms are entities, could you use the Entity Reference module with a view as the widget? Then you could use a view to order the terms by the custom field – Clive Oct 20 '12 at 0:20
  • didn't know ER can do that. Do I need to use drupal.org/project/entityreference_view_widget? – uwe Oct 20 '12 at 1:23
  • 1
    You can do if you want a more advanced widget, but if you just need a dropdown you can use the built in views integration. Just create a view with an Entity Reference display, then use the Views: Filter by entity reference view mode when you're configuring the field – Clive Oct 20 '12 at 10:28
5

If you're stuck using a term reference field, here are some widget options:

0

I had succsefull manage this by this module, Views Term Hierarchy Weight Field, just add (hidden) Hierarchical weight field, then, on sort settings, sort by this new field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.