Taxonomy hierarchical tags module

Events happening in the community are now at Drupal community events on www.drupal.org.
KNOFF's picture

There is the idea of developing a module for implementing a hierarchical taxonomy and combining functions of custom tags.
In this case, it is assumed that the module should not break the normal operation of the mechanism of taxonomy and tagging.

The logic of this module is this: When you create a dictionary flag is set on "tags" and additionally generated module flag "hierarchical". When creating a node controlled by this dictionary, the standard autocomplete field for the tag is replaced by a field with enhanced functionality.
Input format tags in the field is supposed to look like this:
Electronics - Cell Phones - Apple - iPhone - 4G
Electronics - Computers - Laptops - Apple - MacBook Pro - 17 ".
Where the levels of the hierarchy separated by '-'.
Of course, the tags can be entered separated by a comma ",".
In this case, the block between commas - "tag" is perceived as a separate term.
Each term is entered in the dictionary with the indicated hierarchy. By the end node is bound term.
Thus, in the examples above, tags are added to the dictionary - 4G and 17.
That's where the fun begins:
1. In the derivation of the node, the terms are specified with full path.
2. Upon subsequent entering the same or similar terms AutoComplete offers them these terms as options in the field making the same, taking into account the full path.
3. The term Apple in both cases is the same term.
4. Any expansion associated with the mapping of all nodes, linked to the term and its children when viewing the term will work. When you view the term we will see Apple both nodes.
In general, this approach will significantly expand the functionality of the taxonomy and to build a hierarchy with no pre-defined structure (without unnecessary duplication).
In general, solutions to all of my description of the functions worked. But before writing such a module, I would like to clarify the public interest in it, to discuss possible pitfalls and to find interested people willing to take part in development.

Comments

Hi, +2 for this module! I

summit's picture

Hi,
+2 for this module!
I would like to add as may be submodule, a taxonomy-hierarchy menu-block. In this block then the hierarchy should also be used, such as:

--Electronics
-----Cell Phones
---------Apple
------------Iphone
---------------4G

Where in the module on every level a url (not alias) could be placed which will fire a specific levelbased panel.
Say:
--Electronics            --------> Electronics
-----Cell Phones       --------> Cellphones
---------Apple          --------> Brand
------------Iphone    --------> Model
---------------4G      --------> Series

Panels and views can hold arguments, so as such are great to be used as templates for different hierarchy!

Hopefully you can integrate above in the taxoomy hierarchy module you want to build.
It would bring drupal in the "hierarchical website" league. Because with the current solutions this is not really possible!

greetings,
Martijn

Actually, I guess to make API

KNOFF's picture

The main objective of the module provide the ability to save tags in view of the hierarchy.
In addition, for the work out of the box, the module converts basic tags fields.
Well, because the mechanism works with hierarchical tags have to be developed, the basic functions to work with them will be open to other modules.
This will allow it to extend in the future without changing the basic functionality, but relying on it.

With regard to the classification of tags, which can be seen in the example above, I think this is a separate issue, but very interesting. I guess I really will include this functionality into further extensions.

Subscribe!

paganwinter's picture

Subscribe!

great idea

jkoprax's picture

+1

subscribe

Alexander Matveev's picture

subscribe

Contributed Module Ideas

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: