How to set the source for primary and secondary links based on subdomain name?

Events happening in the community are now at Drupal community events on www.drupal.org.
tyates's picture

I am using Drupal 6.1 and need to support multiple domains with some shared and some unique content. Domain Access, a fantastic product by agentrickard, has solved most of my issues.

Each site, example.com, one.example.com and two.example.com has its own menu. Placing all 3 menus in a region and using a little PHP to show only the correct menu based on $base_url works fine.

The problem is that I would like to display the menu in the primary links, instead of a region. Is there a way, using DA or other, to dynamically set the source for the primary (and secondary) links based on URL?

I have tried the Domain Nav module, but it does not appear to fit this need.

Many thanks in advance,
Ted

Comments

Upgrade to the latest

Garrett Albright's picture
  1. Upgrade to the latest release of Drupal - seriously, you're twelve releases behind as of this writing.
  2. When you create a menu, a block containing that menu is automagically created. Go to your Blocks admin page and move all those blocks into the theme's Navigation Bar region (hopefully your theme has one… if not, pick a region in which you can fake it).
  3. In the theme's settings, disable the display of the "normal" navigation menu.
  4. Use Domain Blocks to set it so each menu block only appears on its respective site.
  5. Use CSS to style those blocks so that they look like the navigation menu.
  6. Throw a bitchin' party and invite me.

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week