[development] Having different content at the same alias for different domains in Domain Access

Ken Rickard agentrickard at gmail.com
Thu Jun 10 10:52:25 UTC 2010

This is a module specific question that really belongs in the issue  
queue. And if you search, you will find potential solutions using  
Domain Prefix.

On Jun 10, 2010, at 6:12 AM, David Hart <david.hart at gmail.com> wrote:

> I'm using Domain Access with two sites, foo.com and bar.com to allow
> content and users to be shared between the different URLs. They share
> most pages with one or two different. Where the pages are different,
> I've created different aliases (foo.com/contact and
> bar.com/contact-us).
> One of the pages they share in common (foo.com/baz and bar.com/baz)
> has had some minor text changes so that it now has to be different on
> both sites. While the original is still at foo.com/baz there's a new
> page bar.com/baz-new and baz is no published on bar.com.
> The problem now is that bar.com/baz gives an access denied for any
> incoming links (from Google/bookmarks/printed material). I can't use
> URL Alias or URL Redirect to change bar.com/baz to bar.com/baz-new as
> neither of these are Domain Access aware.
> Almost as problematic, it also means having to manually add back in
> all the submenu items under baz to go under baz-new (50+ child items)
> and keeping them in sync in the future if I ever add/move/delete any
> more children to the baz menu.
> Potential ways I can see to solve it are:
> 1. In a custom module check the URL and, if it's bar.com/baz, issue a
> drupal_goto
> 2. Leave baz on bar.com, create baz-new and then in a custom module
> swap the contents of baz for baz-new when it's output on the page (in
> hook_nodeapi?)
> 1. is a simple way to solve the broken url issue but doesn't help with
> the menu problem
> 2. seems to do both as long as whoever maintains the site knows that
> all future copy changes to bar.com/baz have to be done a different way
> to every other page on the site. I guess I could try and intercept
> things if baz is edited from bar.com.
> Are these my only options or am I missing something obvious? Is there
> a way to set baz-new as being the same menu-wise as baz. Looking in
> {menu_links} I guess it would mean somehow changing baz-new to have
> the same mlid as baz whenever it's called?

More information about the development mailing list