You are here

README.txt in Taxonomy Redirect 5

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