README.txt in Taxonomy Redirect 5
Same filename and directory in other branches
This module allows the administrator to change the destination of Taxonomy Term links. Ordinarily these links go to taxonomy/term/TERMID but that is not always desirable. Using this module, you could redirect these links to custom content, or content generated by the Views module. Note: Taxonomy redirect only uses hook_term_path (http://api.drupal.org/api/function/hook_term_path/6) to modify paths for taxonomy terms, it doesn't actually create path aliases. This means the redirect only works for taxonomy links placed by the taxonomy module. It also means if you type the url in to your browser the redirect doesn't work. Features: * Taxonomy redirects can be done at the vocabulary level or the term level. * You can specify a replacement character for spaces and + symbols. * You can specify a list of characters or strings to remove from the path after it is created. * You can enter PHP code to create your path at runtime. * You have to option to transform the case of the redirect path after it is created. ********** To install this module: ********** Copy the taxonomy_redirect directory to your Drupal modules directory, then enable the module in admin/modules. You can then go to admin/build/taxonomy_redirect to set up the redirections. ************** Notes on usage: ************** When creating a path the following variables are available: !tid - Term ID !name - Term name !parent_ids - A slash delimited string of the parent ids of the term. Like: great_grandparent_tid/grandparent_tid/parent_tid !parent_names - A slash delimited string of the parent names of the term Like: great_grandparent_name/grandparent_name/parent_name When creating a path using PHP the following variables are available to your code: $tid - Term ID $tname - Term name $nid - The nid of the node the link is being printed for
File
README.txtView source
- This module allows the administrator to change the destination of Taxonomy Term
- links. Ordinarily these links go to taxonomy/term/TERMID but that is not
- always desirable. Using this module, you could redirect these links to custom
- content, or content generated by the Views module.
-
- Note: Taxonomy redirect only uses hook_term_path (http://api.drupal.org/api/function/hook_term_path/6)
- to modify paths for taxonomy terms, it doesn't actually create path aliases.
- This means the redirect only works for taxonomy links placed by the taxonomy module.
- It also means if you type the url in to your browser the redirect doesn't work.
-
- Features:
- * Taxonomy redirects can be done at the vocabulary level or the term level.
- * You can specify a replacement character for spaces and + symbols.
- * You can specify a list of characters or strings to remove from the path after it is created.
- * You can enter PHP code to create your path at runtime.
- * You have to option to transform the case of the redirect path after it is created.
-
- ********** To install this module: **********
-
- Copy the taxonomy_redirect directory to your Drupal modules directory, then
- enable the module in admin/modules. You can then go to admin/build/taxonomy_redirect
- to set up the redirections.
-
- ************** Notes on usage: **************
-
- When creating a path the following variables are available:
- !tid - Term ID
- !name - Term name
- !parent_ids - A slash delimited string of the parent ids of the term.
- Like: great_grandparent_tid/grandparent_tid/parent_tid
- !parent_names - A slash delimited string of the parent names of the term
- Like: great_grandparent_name/grandparent_name/parent_name
-
- When creating a path using PHP the following variables are available to your code:
- $tid - Term ID
- $tname - Term name
- $nid - The nid of the node the link is being printed for