You are here

README.txt in View Alias 5

Same filename and directory in other branches
  1. 6.2 README.txt
  2. 6 README.txt
  3. 7 README.txt
VIEW ALIAS

This module aids in the bulk creation and deletion of SEO friendly view aliases.

In the past I've worked on several sites that utilize a single view which takes in a single taxonomy term id to display a list
of related items.  And on these sites maintaining the url aliases for them was a pain to do by hand, so I wrote this module
to do the repetition for me.


SETUP
1. untar the tarball into your drupal modules directory
2. enable the module
3. visit admin/settings/view_alias for configuration options.

Generating Aliases
This is our bulk process to build all of the view aliases.
Click the "Generate Aliases" field link for the fieldset that will display a section for each view that accepts term id arguments.
To create aliases:
1. Inside the fieldset for the view that you wish to create aliases for:
  a. select the vocabulary
  b. check the "Update aliases for <viewname>" checkbox
  c. select an Update Action
  d. click the "Update Aliases" button.
    Now you will see a list of all the aliases created.

Recurring Aliases
This works of hook_taxonomy to update aliases when terms are updated, created or deleted.
For each view:
1. check "Create/Update/Delete aliases for <view-name> on term creation"
2. select the "Vocabulary to alias" from the select box.
3. Save configuration.


FAQ
WHY NOT JUST USE <view-name>/<term-name>?
I kept running into duplicate terms when not using the full path.  I also found that people were turned off by some of the special characters that showed up in the browser bar.

WHAT ABOUT PATHAUTO?
I tried adding this at first to pathauto, but got bogged down in some of the details and tokens.  So I just created a new module
that requires pathauto to be enabled.  I use some of the pathauto functions for generating the names.  Also, one important thing
to point out is that the aliases point to a view and dont run off the taxonomy/term path, so your aliases would end up like
myviewname/some_term_name aliased to taxonomy/term/20


Eric Mckenna, Phase2 Technology
emckenna@phase2technology.com

File

README.txt
View source
  1. VIEW ALIAS
  2. This module aids in the bulk creation and deletion of SEO friendly view aliases.
  3. In the past I've worked on several sites that utilize a single view which takes in a single taxonomy term id to display a list
  4. of related items. And on these sites maintaining the url aliases for them was a pain to do by hand, so I wrote this module
  5. to do the repetition for me.
  6. SETUP
  7. 1. untar the tarball into your drupal modules directory
  8. 2. enable the module
  9. 3. visit admin/settings/view_alias for configuration options.
  10. Generating Aliases
  11. This is our bulk process to build all of the view aliases.
  12. Click the "Generate Aliases" field link for the fieldset that will display a section for each view that accepts term id arguments.
  13. To create aliases:
  14. 1. Inside the fieldset for the view that you wish to create aliases for:
  15. a. select the vocabulary
  16. b. check the "Update aliases for " checkbox
  17. c. select an Update Action
  18. d. click the "Update Aliases" button.
  19. Now you will see a list of all the aliases created.
  20. Recurring Aliases
  21. This works of hook_taxonomy to update aliases when terms are updated, created or deleted.
  22. For each view:
  23. 1. check "Create/Update/Delete aliases for on term creation"
  24. 2. select the "Vocabulary to alias" from the select box.
  25. 3. Save configuration.
  26. FAQ
  27. WHY NOT JUST USE /?
  28. I kept running into duplicate terms when not using the full path. I also found that people were turned off by some of the special characters that showed up in the browser bar.
  29. WHAT ABOUT PATHAUTO?
  30. I tried adding this at first to pathauto, but got bogged down in some of the details and tokens. So I just created a new module
  31. that requires pathauto to be enabled. I use some of the pathauto functions for generating the names. Also, one important thing
  32. to point out is that the aliases point to a view and dont run off the taxonomy/term path, so your aliases would end up like
  33. myviewname/some_term_name aliased to taxonomy/term/20
  34. Eric Mckenna, Phase2 Technology
  35. emckenna@phase2technology.com