I'm having difficulty getting a 2nd taxonomy menu to populate when I rebuild the menu.
I currently have it working fine with the default taxonomy_termviews view.
Where I'm running into trouble is that I made a clone of the taxonomy_term to taxonomy_term_parts. I then changed the path to parts/taxonomy/term/% from the default taxonomy/term/%.
I'm trying to create a taxonomy menu that has the custom path for this new view. Unfortunately, I can't seem to figure it out.
The view works when I manually type in the url into the address bar:
http://www.pinkgorillacycles.com/parts/taxonomy/term/29 30 31 32
When creating the taxonomy menu should I change the "menu type path" to custom and in the "custom path for vocabulary" enter "parts/taxonomy/term/%"?
Thanks for any help!
Comments
Comment #1
indytechcook commentedHello xi_cheese, Have you read the README.TXT? There is an example configuration that might help. Menu path matching can be tricky.
MENU PATH TYPE: CUSTOM
With this path type, one can create individual views for each vocabulary.
You need to have a view (page) with path 'custom path/%' and an argument 'Term ID' BEFORE you create
the taxonomy menu. Enable the option "Allow multiple terms per argument" while adding the argument
'Term ID' and choose a title like "Terms". Other options should be left by default unless really
needs to change sth..
Fields and filters can be added and options can be set according to ones needs.
Back to Taxonomy Menu:
Enter your 'custom path' in the field "Base Path for Custom Path:" - leave out '/%'.
For example when your view path is 'interests/%' you enter only 'interests' here.
To use the 'Display Depth in Custom Path:' option, you need to have 'Taxonomy: Term ID depth modifier'
as second argument within your view.
Comment #2
xl_cheese commentedThanks for the reply.
I'm still having trouble with this. I have read as much documentation as I could find along with the readme file.
It seems like this should work but it's not producing a menu item.
The views path:
parts/taxonomy/term/%
In the taxonomy menu:
custom path = parts/taxonomy/term
I have also tried the following. I get a menu item, but it does not link to the correct place.
The views path:
parts/%
In the taxonomy menu:
custom path = parts
When the menu item appears it links to www.pinkgorillacycles.com/parts. It does not have vocabulary or terms.
I have an inital taxonomy_term view that works well using the default taxonomy menu settings. I need to create a 2nd taxonomy_term_parts view and have a taxonomy menu linked to it. I simply created a clone of the original taxonomy_term view and changed the path on the page display. The reason I need this is that I need the views filters to be different for parts.
Comment #3
xl_cheese commentedI forgot to mention. When I create the taxonomy menu using parts/% I get some errors:
* warning: Invalid argument supplied for foreach() in /home2/thepinkg/public_html/includes/common.inc on line 1647.
* warning: Invalid argument supplied for foreach() in /home2/thepinkg/public_html/includes/common.inc on line 1647.
* warning: Invalid argument supplied for foreach() in /home2/thepinkg/public_html/includes/menu.inc on line 743.
* warning: Invalid argument supplied for foreach() in /home2/thepinkg/public_html/includes/common.inc on line 1647.
* warning: Invalid argument supplied for foreach() in /home2/thepinkg/public_html/includes/common.inc on line 1647.
Comment #4
xl_cheese commentedMy view seems to work correctly when I manually enter the URL in the address bar for all the various taxonomy terms.
/parts/taxonomy/term/% % % %
Comment #5
xl_cheese commentedAn update to version 2.8 seems to fix the issue!
Comment #6
stevenaburton commented#4 didn't resolve the probem for me. I upgraded but still have the same issue.
Comment #7
indytechcook commented@stevenaburton Please open a new issue and put some detail into the issue. Let me know which path type you are using, what your settings are and if you are using a view please either give me an export or let me know your argument settings and the path you used.