Feature: allow retaining the hierarchy for vocabularies

Yas375 - October 30, 2009 - 09:52
Project:Node Auto Term [NAT]
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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.

AttachmentSize
nat_parent_term_select_feature.patch7.9 KB

#1

Yas375 - October 30, 2009 - 09:56

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

AttachmentSize
nat_parent_term_select.png 11.82 KB
nat_parent_term_select_on_node_creation.png 12.89 KB

#2

nardberjean - November 20, 2009 - 20:00

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!

#3

nardberjean - November 20, 2009 - 20:07

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.

 
 

Drupal is a registered trademark of Dries Buytaert.