Hello,

When I'm selecting a term which has sub-terms and click "order nodes", the related nodes don't show.

Thanks

Comments

pvanderspek’s picture

Have you checked whether this is related to the other bugreport you've submitted? (http://drupal.org/node/565398)

fietserwin’s picture

This has to do with the fact that, by default, nodes are selected with $depth = 0. The taxonomy module itself does the same. Imho this is the wrong default (as it renders the word 'hierarchical' quite useless in this context) but we'll have to live with that.

Thus nodes linked to sub-terms are not selected to be shown on the order page. Changing this is not so difficult: change the 0 to 'all' in the call to nodeorder_select_nodes() in function nodeorder_admin_display_form()). This will show all nodes linked to sub terms.

However, updating won't work as the nodes are not linked to the term being edited/sorted, thus the update query can't update the weight for the tid/nid combination. Solving this is not straightforward and requires to rewrite the form building, form processing and select_nodes code. It can also lead to order overwriting problems if nodes are linked to multiple children and you change order on the child terms pages as well as on the parent term page. anyway, I have done so for my (specific) situation, but it would be too much of a change to patch it into the generally available version. If anybody is interested let me know.

dieuwe’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing as the Drupal 6 branch of this module (and Drupal 6 in general) has been discontinued.