Posted by rockwright on February 2, 2010 at 10:13am
4 followers
Jump to:
| Project: | Taxonomy Filter |
| Version: | 6.x-1.3 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | major |
| Assigned: | solotandem |
| Status: | active |
Issue Summary
This is a very nice module—it’s just what I was looking for. I’m wondering if I can create a custom URL for multiple term pages. I have “category/[vocab-raw]/[catpath-raw]” as my alias in the URL Alias module for the taxonomy default path pattern. It returns something like “category/tags/cars” as the URL. If I go beyond the first term I get something like “taxonomy/term/707,708.” How can I get something like “category/tags/cars,bentley?”
Comments
#1
There is a new alter hook, tf_url_tokens_alter, invoked as:
drupal_alter('tf_url_tokens', $url_tokens, $filter_bits);This might be useful for what you are trying to do. If so, you would add a function in your module called
mymodule_tf_url_tokens_alter(&$url_tokens, &$filter_bits)and make modifications there.
I have not tried this (it is late). Let me know if you find this useful.
#2
You mean I would have to create custom module to do something like this? I can’t just insert a snippet in the current module? I don’t understand how to do this because I’m not a coder. I really find this module useful especially since my project is free-tagging and contains a lot of terms. Normally, ordinary users can careless what’s in the URL as long as the interface is simplistic. I, however, am anal about things like this so if you can provide additional support, I’d appreciate it.
#3
subscribing
#4
Hello
I have a similar issue, in my site at:
http://www.thatscookedby.com/recipes/indian-recipes
When you use the filters, you get links like "taxonomy/term/xx,yy", need a way to make this more meaningful. Please advice.
#5
This module is only going to create the links you indicated. The pathauto and path modules would be used to convert those "xx,yy" combinations to something more readable.
If you would try the dev release as it has code and settings for creating the "xx,yy" combinations only one way for SEO purposes. See #408544: Taxonomy filter term 147,122 vs 122,147 (There's a difference).
Please report your findings on using the dev release and configuring path aliases.
#6
I can't figure out how to use pathauto to set this up.. besides just doing it link by link.. If anyone finds a solution, please post it :)