0

I've been looking for this for a while, but found no solution.

What I want is: Whenever someone visits to a user's profile, say http://mysite.com/user/1 there should be an item available in Main Menu, with the link: http://mysite.com/custom_module/1

Here, I'll be dynamically changing the menu item's links based on the current page. How to achieve that?

Thanks.

1 Answer 1

1

It depends on how exactly you want to change the links, but views can handle most links if you configure the contextual filters correctly. Basically, just display a link to the content as the field and then set your filters and contextual filters (getting the argument from the node/user) as you need.

If you just want to change around links for user profiles, there's also the me module.

2
  • Hi Patrick, Thanks for reply. I can use it with Views and templates, but the client wants it done using Menus.
    – Shafiul
    Commented Mar 19, 2012 at 9:48
  • I don't understand what you mean. You can use views to generate a menu. Is it a configuration issue? You can always set up a simple admin view to allow your client to make the edits more easily. Commented Mar 19, 2012 at 11:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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