Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I'm trying to add a page generated by CiviCRM to my menu. The pages url is 'civicrm/contribute/transact?reset=1&id=6'. I've added the link to the drupal menu manually, and it goes to the page, but that menu item isn't set to active and the active-trail class is not set to it's parent items.

I tried using the full URL and also tried created a module that added a hook_menu function to create a url without query parameters. The hook_menu callback would redirect to the path above.

How can I add that link to my menu, and have the active and active-trail classes set?

share|improve this question
I am not sure if this would help. But have you tried drupal.org/project/menu_trail_by_path – Mohammed Shameem Jan 25 at 8:15
Yea, I was looking at that and drupal.org/project/menu_position, but no luck yet. I'll let you know if I find anything. – Evan Johnson Jan 25 at 8:29
it is due query parameters. use pathauto to change its path. – monymirza Jan 25 at 12:01
Pathauto works great, but unfortunately it wont allow patterns for CiviCRM pages. – Evan Johnson Jan 29 at 6:01

1 Answer

There is a way of making menus do whatever you want, including generating the menu link by php code whenever it is being viewed.

The details you can find in the answer below http://drupal.stackexchange.com/a/53531/12153

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.