I've got an existing drupal site where multiple domains point to the same site. I've now installed domain access, and can see how I can use domain source to lock a node to a particular domain. If I do set a source domain for a node and don't post it to all affiliates the menu item for that node disappears on the other domains. If I post it to all affiliates, I get the menu item on all domains, but the node appears as part of all the domains as well.

Whilst I understand this behaviour, what I'd really like is the option to have the node only present on one of the domains but still include the menu item in all domains so that either the menu item links to the node at it's source domain, or that clicking on the menu item redirects the node on it's source domain.

Perhaps to explain it better:
example-1.com/node/100 source domain is example-1.com. it has a menu item that I want to appear in example-2.com and example-3.com. If I go to example-3.com and click the menu item for the node, it takes me to example-1.com/node/100

Is this possible, somehow, with domain access?

Comments

agentrickard’s picture

You would have to enter an absolute URL to the node in the menu system.

matt b’s picture

Thanks! That would address it, however a couple of problems with that approach:
1) the end user typically puts the menu settings in the node edit form, and there is no option to put an abslute URL there. They would then have to go to the menu admin pages to change the settings, so creating a node becomes a two step process.
2) Because this is manual, if a change is made to the domain setting, then you would have to manually go through and find all the absolute URLs and change them.

I'm after an automatic method, although at a pinch manually entering absolute URLs would work in my case because its a small site.

I've got "Rewrite all URLs to point to a single source" set, so I was expecting the this to redirect me to the node on the source domain....

matt b’s picture

Status: Active » Closed (fixed)

Ok, classic case of user error - this module is great!

I'd ticked "Send to all affiliates" which clearly has the help text "Select if this content can be shown to all affiliates. This setting will override the options below."

The setting also overrides the Source Domain.

So as long as I uncheck "Send to all affiliates", check all the domains and set the source domain, the menus work as I expect.

tomho’s picture

Thanks Matt B, this was helpful because i was making the same mistake.

rgrms’s picture

Status: Closed (fixed) » Active

I have the same problem in DA 2.5

I have a primary domain www.something.com, then,
node/10 I need to point to downloads.something.com
node/20 I need to point to corporate.something.com
I also have two menu items in secondary_links, which are used on each domain, so I need that menu item for node/10 will have link downloads.something.com/node/10 regardless of what domain I'm viewing at the moment.

So I edited each node and unchecked "Send to all affiliates", checked all the domains and set the source domain respectively, like described in above comments.
What I have after: I have e.g. www.something.com/node/10 in menu on EACH domain.
Domain Strict is off. SEO rewrite is off.
How to fix?

agentrickard’s picture

Try using the Domain Secondary links block instead of core's.

rgrms’s picture

For some reasons it's not possible - secondary links are parsed through comlex JQuery. So I need to fix exactly core output.

agentrickard’s picture

Then I can't really help you.

baff’s picture

agentrickard’s picture

Status: Active » Closed (works as designed)