1

I want to change main menu items depending upon domain and sub domains url in a single site.

I could have done it easily with roles, but issue w.r.t anonymous users. How would I show or not certain items in the main menu?

1

This is how I would do it:

  • Create a main menu per site
  • Create a context condition plugin for domain names
  • Create a context per domain
  • Create a context per site and place the menu block in the navigation region for each context

Profit

If you need to put the same links in multiple menus, check out the multiple node menu module.

  • 1
    I dont know what is that context condition plugin. could be more elaborate. – NewToDrupal Aug 5 '13 at 9:42
  • I believe that this is the purpose of the Context Domain module. – colan Oct 30 '13 at 23:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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