Closed (fixed)
Project:
Taxonomy Menu
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2009 at 02:43 UTC
Updated:
1 Apr 2012 at 21:23 UTC
Taxonomy Menu 6-2.3 does not save paths that have query strings in them, because _taxonomy_menu_save() does not look for a query string.
This patch adds that check (strpos() for '?') and sets $item['options']['query'] and $item['link_path'] accordingly if it does find one. With those values present menu_link_save() will properly save the menu item with the query string.
In my use case, this patch allowed me to write a custom module that implements hook_taxonomy_menu_path() and creates paths that use query string.
| Comment | File | Size | Author |
|---|---|---|---|
| taxo_menu_query.patch | 665 bytes | greenmachine |
Comments
Comment #1
indytechcook commentedThanks for the patch. Has anyone else tested this?
Comment #2
indytechcook commentedAdding to next release
Comment #3
indytechcook commentedAdded to 2.4-beta1.
Comment #5
Donsov commentedhow to make to 7x?