README.txt 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Please read this file and also the INSTALL.txt.
  2. They contain answers to many common questions.
  3. If you are developing for this module, the API.txt may be interesting.
  4. If you are upgrading, check the CHANGELOG.txt for major changes.
  5. **Description:
  6. The Pathauto module provides support functions for other modules to
  7. automatically generate aliases based on appropriate criteria, with a
  8. central settings path for site administrators.
  9. Implementations are provided for core entity types: content, taxonomy terms,
  10. and users (including blogs and tracker pages).
  11. Pathauto also provides a way to delete large numbers of aliases. This feature
  12. is available at Administer > Site building > URL aliases > Delete aliases
  13. **Benefits:
  14. Besides making the page address more reflective of its content than
  15. "node/138", it's important to know that modern search engines give
  16. heavy weight to search terms which appear in a page's URL. By
  17. automatically using keywords based directly on the page content in the URL,
  18. relevant search engine hits for your page can be significantly
  19. enhanced.
  20. **Installation AND Upgrades:
  21. See the INSTALL.txt file.
  22. **Notices:
  23. Pathauto just adds URL aliases to content, users, and taxonomy terms.
  24. Because it's an alias, the standard Drupal URL (for example node/123 or
  25. taxonomy/term/1) will still function as normal. If you have external links
  26. to your site pointing to standard Drupal URLs, or hardcoded links in a module,
  27. template, content or menu which point to standard Drupal URLs it will bypass
  28. the alias set by Pathauto.
  29. There are reasons you might not want two URLs for the same content on your
  30. site. If this applies to you, please note that you will need to update any
  31. hard coded links in your content or blocks.
  32. If you use the "system path" (i.e. node/10) for menu items and settings like
  33. that, Drupal will replace it with the url_alias.
  34. For external links, you might want to consider the Path Redirect or
  35. Global Redirect modules, which allow you to set forwarding either per item or
  36. across the site to your aliased URLs.
  37. URLs (not) Getting Replaced With Aliases:
  38. Please bear in mind that only URLs passed through Drupal's l() or url()
  39. functions will be replaced with their aliases during page output. If a module
  40. or your template contains hardcoded links, such as 'href="node/$node->nid"'
  41. those won't get replaced with their corresponding aliases. Use the
  42. Drupal API instead:
  43. * 'href="'. url("node/$node->nid") .'"' or
  44. * l("Your link title", "node/$node->nid")
  45. See http://api.drupal.org/api/HEAD/function/url and
  46. http://api.drupal.org/api/HEAD/function/l for more information.
  47. ** Disabling Pathauto for a specific content type (or taxonomy)
  48. When the pattern for a content type is left blank, the default pattern will be
  49. used. But if the default pattern is also blank, Pathauto will be disabled
  50. for that content type.
  51. ** Bulk Updates Must be Run Multiple Times:
  52. As of 5.x-2.x Pathauto now performs bulk updates in a manner which is more
  53. likely to succeed on large sites. The drawback is that it needs to be run
  54. multiple times. If you want to reduce the number of times that you need to
  55. run Pathauto you can increase the "Maximum number of objects to alias in a
  56. bulk update:" setting under General Settings.
  57. **WYSIWYG Conflicts - FCKEditor, TinyMCE, etc.
  58. If you use a WYSIWYG editor, please disable it for the Pathauto admin page.
  59. Failure to do so may cause errors about "preg_replace" problems due to the <p>
  60. tag being added to the "strings to replace". See http://drupal.org/node/175772
  61. **Credits:
  62. The original module combined the functionality of Mike Ryan's autopath with
  63. Tommy Sundstrom's path_automatic.
  64. Significant enhancements were contributed by jdmquin @ www.bcdems.net.
  65. Matt England added the tracker support.
  66. Other suggestions and patches contributed by the Drupal community.
  67. Current maintainers:
  68. Greg Knaddison - http://growingventuresolutions.com
  69. Mike Ryan - http://mikeryan.name
  70. Frederik 'Freso' S. Olesen - http://freso.dk
  71. **Changes:
  72. See the CHANGELOG.txt file.