Closed (fixed)
Project:
Taxonomy Menu
Version:
5.x-1.04
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2007 at 16:10 UTC
Updated:
19 Mar 2009 at 13:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
gregglesThis is something that the taxonomy menu module would have to implement. For example code see how this is done for the blog module in pathauto_user.inc
You just need to implement two hooks.
Comment #2
druvision commentedAs a temporary solution, I've written a module which uses custom_url_rewrite to change all taxonomy_menu URLs to the correct taxonomy/term/... form, and works with pathauto URLs.
This works great on the top nice_menus on my site, http://levavie.com
rewrite.module may be downloaded from here: http://drupal.org.il/sites/drupal.org.il/files/rewrite.tar.gz
Here is the code, adapted from the multidomain module:
Enjoy,
Amnon
-
Professional: Drupal Israel | Drupal Development & Consulting | Effective Hosting Strategies | בניית אתרים
Personal: Hitech Dolphin: Regain Simple Joy :)
Comment #3
druvision commentedComment #4
giggler commentedHow is this used after installing the module?
Comment #5
murzI add some support for pathauto module in my patch Patch for remove vid or module page from url (with pathauto support), you can try to use it.
Comment #6
Jeroen Coumans commentedThis works great, but its behaviour is slightly different from taxonomy menu: for terms with subterms, the children aren't displayed anymore.
Comment #7
murzThis is work on my drupal 5.2 versions with subterms good. You can look at it on my development site http://gr.shtrix.ru/articles/kimberly-clark/ripple
If you use menu block split module, it have an issue that can be solved width this patch.
Comment #8
fallsemo commentedsubscribe.
Comment #9
q0rban commentedSorry everyone, I don't know why I didn't see this before posting another request and patch for this feature. You can download the patch here.
Comment #10
pelicani commentedThe link above is to a duplicate issue.
A duplicate of this issue.
So if you follow the logic, as I did, you get in an infinite loop.
We are looking for taxonomy_menu to honor the pathauto settings.
I believe this patch should do this.
I have yet to test, but here it is.
*Taken from dupe issue listed as #9 above*
Comment #11
q0rban commentedMan, how did you break out of that loop!
;)
Sorry, I guess my link was a bit misleading as it linked to the issue that had the file attached, and not the actual file itself.
Here's the correct link.
Comment #12
summit commentedSubscribing, looking for an option to use depth to change the url build like taxonomy/term..
greetings,
Martijn
Comment #13
alliax commentedWhat a bad surprise to realize that taxonomy menu module is creating duplicate content on my site because I already use pathauto and this module doesn't care about aliases and uses it's own path. So I end up with two urls in google for the same page, how bad... What were the developpers thinking when they choose not to support pathauto? Incredible!
Please someone correct this, the issue has been going on for over a year, it looks like someone doesn't want this BUG to be fixed!
Comment #14
gregglesIt's not really a matter of "not supporting pathauto" it's a matter of not supporting path aliases in general (since pathauto is just a wrapper around the core path system).
But yes, I agree...bump?
Comment #15
summit commentedHi,
Not wanting to hijack this thread, but asking for considering keeping also the present functionality
The great thing from taxonomy_menu is the fact that the hierarchy of the terms is showed in the url.
I build a very small function on this to be able to use different panels at different term level.
See www.wintersport-accommodaties.nl for a example of my use of the taxonomy_menu module.
http://www.wintersport-accommodaties.nl/land-info/Frankrijk
land-infoIs the taxonomy_menu /VID/TID panel
http://www.wintersport-accommodaties.nl/gebied-info/Espace-Killy
gebied-info is the taxonomy_menu /VID/TID/TID panel
Hopefully a solution can come up to use path aliases, but still be able to use the /VID/TID/TID etc.. functionality from taxonomy_menu which I now use.
Greetings, Martijn
Comment #16
asak commentedSo... does any of this work?
EDIT: WORKS!
Thanks for this patch... it's a site saver ;)
(Patch from #10 / #11)
Comment #17
asak commentedIs there a special reason why the token [catpath-raw] isn't working?
I can see it in the Replacement patterns for the "catalog path" in pathauto, and would very much like it to work with taxonomy menu!
;)
Comment #18
Falldog commentedSubscribe
Comment #19
joyltd commentedHi there...may I start with the common, "I'm a bit of a Newbie here - please don't attack me" approach!?
Got a stupid question:
pelicni, thanks for that patch - I reckon its going to be just what i need judging on what asak says.
So...and here's the stupid part, where do I place the patch!!
I've guessed that it goes in the taxonomy_menu.module file, but do i just paste the whole lot of the patch at the bottom of the taxonomy_menu.module file?
ps: last time I tried to patch a module I managed to break it!
Thanks in advance, this documentation at drupal is some of the best I've come across - and I love my new drupal buddies! Your expertise is much appreciated.
Comment #20
summit commentedHi Joy,
Welcome!
For your question. No you need to patch your taxonomy_menu.module using patching software.
If it is a small patch I prefer looking up the old code (the one with - before it), and paste the new code (the one with + before it).
Off course you break the module keeping the + signs there. They are not php-commands. You have to erase those.
Greetings,
Martijn
Comment #21
stoltoguzzi commentedis this patch for D6 as well!
Comment #22
gregglesComment #23
joyltd commentedThanks Summit.
I've found it! Thanks - in true newbie fashion I was searching under the wrong criteria yesterday...now about to warm up the command line in Terminal!
All the best
PS: to answer my own question some what, I found an excellent video tutorial here - yeah its to do with testing patches under Drupal Head - but all the info i need is there.
Comment #24
doofaye commentedcan someone let me know if patch in #9 #10 solves problems with duplicate content in website?
the patch gives ability to alias taxonomy menu to whatever you want but the system paths are still different to taxonomy/term/
basically after applying patch #9,10 does this solve duplicate content issue???????
Comment #25
fumbling commentedLooks like you were replying on whether there was a patch for D6, but don't see a response. In any event, any plans for a D6 patch?
Comment #26
indytechcook commentedPlease respond if the patch works and I will create a release for it
Comment #27
indytechcook commentedI'm leaning towards committing #234513: Path Auto Support in a new D5 Dev version. If anyone that uses the patch on this page is object to that then please respond by 2/5. Note that the other patch includes functionality to hid the vocabulary.
Comment #28
indytechcook commentedThis is part of the latest DEV. Please test. Implemented in conjunction with #234513: Path Auto Support
Comment #29
jstirnaman commentedWhen I tried to run the Pathauto batch operation for taxonomy_menu, it couldn't find taxonomy_vocabulary_load() which is called at line 99 in taxonomy_menu_pathauto.inc. I'm still running Drupal 5.11. I made the following change and it's working fine:
Comment #30
greggleshttp://api.drupal.org/api/function/taxonomy_vocabulary_load is a 6.x+ function. The 5.x version of the code will need to use taxonomy_get_vocabulary.
Comment #31
indytechcook commentedI will update this tonight and a new DEV package will be release overnight.
Comment #32
jstirnaman commentedAfter a few more minutes, I realized it's not quite right. Maybe I'm doing something wrong, but pathauto is adding a preceding slash to taxonomy_menu terms when there is no module page value set. The result is that the menu ignores those menu items. If I remove the preceding slash in URL Aliases the links display and work properly. I don't know that this is a proper solution, but I made the following hack to taxonomy_menu_pathauto.inc and the paths came out properly:
Comment #33
indytechcook commentedChanges have been made to latest Dev package. Thanks jstirnman.
Comment #34
ahmaddani commentedThis comment is reply from #15
Please explain me how you do that. I think your site has prety taxonomy hierarchy.
Comment #35
ahmaddani commentedPlease explain me how you do that. I think your site has prety taxonomy hierarchy
Comment #36
summit commentedGuys,
This custom_url_rewrite is working on D5. How to get it working in D6 please?
Comment #37
indytechcook commentedSetting backed to fixed since issue is resolved.