Made to Order Software Corporation Logo

MO Auto Add Terms: Main Page

1.13

Summary

Introduction to the Auto add terms module
Requirements
Installation
Errors generated by this module.
Copyright (c) 2008-2011 Made to Order Software Corp.

Introduction to the Auto add terms module

The Auto add terms module was created by Made to Order Software Corporation.

I find it quite interesting that this functionality is not offered by default with Drupal. It seems to me that it would make sense to have a way to automatically assign terms to a node when that node includes these terms.

I use that methodology in link with the Taxonomy VTN module so my sites indexes automatically get all the nodes that use a certain term. For instance, if you have indexed all the colors, it is probably quite difficult for you to pay attention to all the reference to such and such color in each single page. Especially if the pages are at length (many paragraphs tall.) This module will automatically find all of these colors and add them to your index. This means when users look at your index, you can feel confident that they will automatically find all the nodes as expected.

The module manages the entire set of nodes and recomputes the assigned terms as you move forward with the site. It will also do it immediately whenever you edit a node. That way, new nodes are always immediately up to date.

The module supports adding the parents of the terms found. You can even just add the parents (i.e. you could have the word Car and children Ferrari, Porsche, Mercedes... then only the word Car would be attached to your node.) This can be a powerful SEO helper.

The module accepts the entry of a minimum and maximum number of terms to be attached to a node. If these are overrun, then a trigger is generated. This means you can have your Drupal site send you an email whenever a node is found that does not have enough terms or has too many terms attached. The trigger is a general Core trigger that supports most of the node and system actions (i.e. you can publish, unpublish, email, etc.)

There is a CRON function that checks all the old nodes each time you add a new term in your vocabulary. This is important since if you add a new color, such as Yellow, in your vocabulary, then older nodes could already be making use of that term and thus would need to be linked to it. This is done by the CRON function whenever it runs.

Because many people will want to use the MO Auto add terms to 100% automatically assign terms to a node, the module also includes the feature of hiding the taxonomy entry in your node/add/% and node//edit forms. This is particularly useful if you want a few administrators who have the ability to manage the tags and other users who don't but who still gain access to the tags, automatically, via MO Auto add terms. This feature gives you the ability to hide the taxonomy fields on a per taxonomy and per node type granularity.

Back to Summary

Requirements

This module requires you to have the Taxonomy module installed. The Taxonomy module is a core module offered by Drupal.

When installing this module, it will automatically ask you whether you want to install the Taxonomy module if it is not already selected.

Back to Summary

Installation

In order to install this module:

  • Extract the tarball under sites/all/modules
  • On your server, feel free to delete the doc sub-folder (it is safe since it is just and only static HTML)
  • Go to admin/build/modules and select MO Auto add terms

Then go to your taxonomies and activate the module on the vocabularies you selected. You will find the taxonomies under admin/content/taxonomy

Later there will be a main setup form to control the CRON behavior (used to automatically regenerate the terms of all your nodes.)

Back to Summary

Errors generated by this module.

This module does not generate errors except when you setup the Auto Add Terms in a vocabulary that does not have the Multiple feature turned on.

Since this module links a node with all the possible terms of vocabularies it is attached to, it is a requirement that this vocabulary accept multiple entries.

Also, if:

  • You do not specify any terms,
  • None of the existing terms are found in that node,
  • The vocabulary is marked with Required

Then the system will attempt to add one "random" term to the node. If that fails, the node will not have any terms attached to it making it invalid. However, at this time, no errors are raised in this case.

Back to Summary

Copyright (c) 2008-2011 Made to Order Software Corp.

http://www.m2osw.com/mo_glossary contact@m2osw.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Back to Summary
Documentation generated by Doxygen on Sat Mar 12 16:05:17 2011