| 1 |
VIEW ALIAS
|
| 2 |
|
| 3 |
This module aids in the bulk creation and deletion of SEO friendly view aliases.
|
| 4 |
|
| 5 |
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
|
| 6 |
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
|
| 7 |
to do the repetition for me.
|
| 8 |
|
| 9 |
|
| 10 |
SETUP
|
| 11 |
1. untar the tarball into your drupal modules directory
|
| 12 |
2. enable the module
|
| 13 |
3. visit admin/build/path/pathauto for configuration options.
|
| 14 |
|
| 15 |
Generating Aliases
|
| 16 |
View Alias is mostly integrated with pathauto. So expand the "View Alias"
|
| 17 |
settings fieldset to select the views to alias.
|
| 18 |
|
| 19 |
In the 6.x version the views with term arguments and page displays are
|
| 20 |
automatically displayed for you to choose from. Simply select the views
|
| 21 |
to alias and check the "Bulk generate aliases ..." box and Save the
|
| 22 |
configuration to kick off the generation.
|
| 23 |
|
| 24 |
|
| 25 |
/** NOT DONE YET **/
|
| 26 |
Recurring Aliases
|
| 27 |
This works of hook_taxonomy to update aliases when terms are updated, created or deleted.
|
| 28 |
For each view:
|
| 29 |
1. check "Create/Update/Delete aliases for <view-name> on term creation"
|
| 30 |
2. select the "Vocabulary to alias" from the select box.
|
| 31 |
3. Save configuration.
|
| 32 |
|
| 33 |
|
| 34 |
FAQ
|
| 35 |
WHY NOT JUST USE <view-name>/<term-name>?
|
| 36 |
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.
|
| 37 |
|
| 38 |
NO TOKENS?
|
| 39 |
Yep, no tokens, I didn't really see the need for them. But if you have a good
|
| 40 |
reason for them.. let me know and we can figure something out.
|
| 41 |
|
| 42 |
Eric Mckenna, Phase2 Technology
|
| 43 |
emckenna@phase2technology.com
|