Hi!

Yesterday I have implemented this future for one of my sites. And here is a patch. Comments and fixes are welcome.

So, you can apply my patch by running it from your nat module directory:

patch -p1 < nat_parent_term_select_feature.patch

ps I didn't testing this patch when there are another taxononomy vocabularies used for node. Or if one node working with two and more vocabularies through the nat.

Comments

Yas375’s picture

There are some screens in attach to see how it seems now.

nardberjean’s picture

Does not work for me with drupal-6.14, then simply ungrading from 6.x-1.1-beta3

admin/settings/nat

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'nat_settings_form' was given in .../drupal-6.14/includes/form.inc on line 371.

otherwise empty page

admin/settings/nat/sync

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'nat_sync_form' was given in .../drupal-6.14/includes/form.inc on line 371.

otherwise empty page

node/add/...
* Releted terms are select box
* Synonyms are ok
* No parent selection!

Reinstalling the module with devel solved the issue!

nardberjean’s picture

Two boxes for choosing the parent are appering on add and edit pages, one just below the next with only one NAT enabled vocabulary. They show different terms (probably the NAT enabled in the second one and all taxonomy terms in the first one). The difference in using the one or the other has not been investigated.

arlinsandbulte’s picture

Status: Needs review » Fixed

Well, not exactly sure what this patch really intends to do, but it might be possible already.
See this comment in another issue: http://drupal.org/node/188377#comment-2023028

I will mark this as fixed. If I am wrong, feel free to re-open.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

drvdt’s picture

Version: 6.x-1.x-dev » 7.x-1.0-alpha5
Assigned: Unassigned » drvdt
Status: Closed (fixed) » Active

Any solution for D7?
Many thanks

brooke_heaton’s picture

Issue summary: View changes

Patch for D7 - make parent assignment of NAT terms configurable: https://www.drupal.org/node/1085428#comment-12044689