Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Overview
Tag2 is a fork of Tag API module.
The difference is, it processes tagging with Drupal queue rather than saving it on form submit. Which is much faster for end user.
API is fully comparable with original Tag module. And all submodules such as Taxonomy Autotagger should work out of the box.
There are some slightly difference with hook_tag_ui_info().
Problem / Motivation
- Original Tag API module processes on form submit which is very slow on big websites with many visitors
- Tag API is made without using of Drupal code standards. Which made it really difficult to extend existed project.
- (drama) The maintainer of Tag API wasn't kind with offered help. #2344421: Do a strict coding standards check
Concept
The Tag2 module provides two basic components:
- A mechanism to suggest tags for an entity being saved. Modules wanting to provide tag suggestions should implement hook_tag_suggestion_info() - see tag.api.php
- A mechanism to do something with the tags suggested by each "suggestion" module. A module wanting to react to changes in tags (e.g. provide a user interface), should implement hook_tag_ui_info() - again, see tag.api.php
A basic "Tag2-save" module is included with the Tag2 API module. This module provides the basic functionality of adding ALL tags suggested by a suggestion module when an entity is saved. This, along with the 7.x-3.0 branch of the Autotag module should serve as examples to get started with the Tag2 API.
Project information
- Project categories: Site structure
- Created by AlexKirienko on , updated


