Closed (fixed)
Project:
Taxonomy Menu
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 09:27 UTC
Updated:
13 Oct 2009 at 13:10 UTC
I cant seem to get the taxonomy menu working with my default taxonomy view and pathauto, which has "taxonomy/term/%" as path. I have the following alias structure: www.site.com/category/term/term
If i create a new view, with a page view and path "category/%" and vid + tid arguments, it actually creates the correct menu on rebuild, but when using it it wont expand and behave properly (this becasuse its not really using that view? its using the views taxonomy default view?)
How do i solve this?
Comments
Comment #1
indytechcook commentedThe instructions in the readme.txt were for cateogry/vocab/term/term/...
if you want to use category/term/term/.. then make the following changes.
Please let me know how this work. If this does not give you the expected result, I will dig more when I get home from work.
Comment #2
Christolito commentedThanks for your reply. Still no luck, though.
- Using: kategori/[catpath-raw]
- The view argument is tid with Allow multiple terms per argument
- Basic validation
- Default page path: Taxonomy/term/%
My taxonomy ex, after PathAuto:
Kategori(vid)/Historia(category, no nodes)/Medeltid(subcategory, no nodes)/Korstågen(content/taxonomi items)
- It creates a menu, but skips/doesnt display in tree structure, som parent items (in case above, the second "Historia".)
- Plus when adding new content, it doesnt update the menu counter.
Ideas? Going to try a reinstall of taxonomy menu.
Comment #3
indytechcook commentedYou may have a corrupt menu tables. I had this happen when I upgraded from a previous 6.x version of taxonomy menu. I added some code to the uninstall of the newest dev version cleans up most of the corruption. Hopefully this will help you also.
I have one more idea before I ask you to start sending me some table dumps. Make sure the path on the view is "kategori/%" and not the default path of "taxonomy/term/%" This is because we changed the path using pathauto and the page is no longer taxonomy/term/%.
Comment #4
indytechcook commentedI see the issue you are talking about now. This isn't working as I expected. I think it's because arguments are passed as the original URL instead of the alias.
Comment #5
indytechcook commentedOk. I've done a little digging and testing and here is what I have found. It's a little complicated so I'll do my best to explain.
The module uses menu_link_save to create the menu links. When this function runs it takes the url you pass it and looks for a match on the menu router table. This work fine if you want to use 'taxonomy/term/%' because the taxonomy module automatically has this path register. When you apply path auto it changes the url that is sent to menu_link_save to 'category/[catpath-raw]' (or whatever the alias is). This url ('category/%') is not register by default so the menu link is not created. When the view was created with the path of 'category/%' it registered that url so when the aliased menu links were passed to menu_link_save it crated the menu links. The problem is that when you navigate to a alias url it actually passes the non-alias path is to drupal. So 'taxonomy/term/%' is sent instead of the alias 'category/%'. In my testing it appeared to work because I was using a node Row style which would output the same as the default taxonomy page.
I have a terrible workaround until I get this fixed.
Create a view with a path of 'category/%' so the menu links can be created.
Use the default taxonomy view with the path of taxonomy/term/% to control what is actually in the view.
This will only display the terms for that particular term.
I do apologize for this and should have a fix this weekend.
Thanks,
Neil
Comment #6
indytechcook commentedComment #7
indytechcook commentedAfter all of my work, it turns out that there was an easy fix. I was trying to save the menu links with the alias name instead of the normal path. I have correct this and the lastest dev should have this resolved.
Thanks again for the testing.
Neil
Comment #8
Christolito commentedHi, thanks for your efforts. Tried uninstalling the old build and installing your new (1-march) But im still getting faulty menus. It skips some parent menu-items, and doesnt show some of my terms. What else can i do?
Comment #9
indytechcook commentedi'll look into this. Make sure you fully uninstall the module and not just disable/enable.
Comment #10
Christolito commentedI uninstalled via modules/uninstall, then removed the folders from my modules folder. No luck. When removing aliases and turning pathauto of, everything works like a charm, with standard taxonomy view, except for the term-counts, that wont update when adding content. Updates when i rebuild the menu, though.
My vocabulary is called "Länkar" could the swedish char be a problem?
Comment #11
indytechcook commentedComment #12
indytechcook commentedwhat settings do you have on admin/settings/performance?
Comment #13
indytechcook commentedAre you still having issues? Have you looked over the examples in the readme?
Comment #14
indytechcook commentedSetting back to fixed.