I'm not quite sure where to put this, so if I'm in the wrong forum please excuse/inform and I will repost elsewhere. I haven't been able to find anything on this either in the forums or in Google (maybe I'm not using the right search criteria), but in a nutshell this is what I need to do:

I have one main page, www.xxx.com/section that is composed entirely of views that accept arguments, i.e. www.xxx.com/section/crime/oklahoma/henryetta. I currently have a menu module with items that link to /crime, /government, /health, etc. These work just fine. However, when the user is drilled down to a specific state and city through links on the front page (they use hierarchical select to go to state/city) I need the menu items to different sections to take them to /section/crime/state/city. I know I can do this by grabbing the url or possibly get_current_view args, but how would I go about dynamically tag this state/city info to the existing menu item link without hacking core?

Any help is greatly appreciated. I do NOT want to start hacking core even this is a production site that would not bleed over into anything else.

Comments

fblevins’s picture

Title: Dynamically changing menu item links? » Update

I've looked at several ways to do this since my first post and none seem workable. What I'm needing to do in a nutshell is every time the url changes I need to check to see if the word "section" is in it. If it is I need to alter the links going to news sections. Right now they're all set to www.indepnews.com/section, but need to be altered to www.indepnews.com/section/section/state/city for example.

Is there a way to do this anywhere?

emptyvoid’s picture

Hello,

The menu access module doesn't govern the creation or display of menu items, rather it enforces security access rights for the menus.

You may want to reference the following modules:
http://drupal.org/project/menu_node_views
http://drupal.org/project/menu_block

Or read up on views and taxonomies as what you are describing can be accomplished using views, taxonomies, and maybe panels for layout.

fblevins’s picture

Thank you! Now that I've got a direction to start off in I'm sure I can get this fixed! I'll update on my progress to share with others.