Hi,

I'm tearing my hair out. I've successfully installed Domain Access and have it working on my second top domain. Theme and blocks are working as they should.

Currently the root of the second domain, "example2.com" shows the same frontpage (apart from sidebar blocks) as "example.com" does. I want to add an custom frontpage, but I can't find out how. I've added a path in the Domain access settings that my frontpage should have the path: "example2.com/front". It's a unique path.

Both Panels and Views however come with the path "example.com/...." where the domain can't be changed. I went ahead anyway and made a Panel with the path "example.com/front". The second domain "example2.com" does not display it. If I try to access "example2.com/front" Drupal throws me back to the front page of "example.com" which has the Panel front page path of "example.com/frontpage".

Also, since the primary domain path is forced, I can't choose a Panel page or View to become the home page of "example2.com".

What do I do?

I'm alright with hardcoding it into the page template if that is the only solution.

Please someone help!

/ Ayza

Comments

clashar’s picture

subscribe.

I have a similar problem: couldn't get Panels work to chose domain path, I needed it from source domain and not from active domain.

michelle’s picture

You use the same page but make a different variant. You can set which displays based on domain. IIRC, there's a submodule you need to enable for that to work.

Michelle

Annika’s picture

Hi Michelle,

thanks for your answer.

There is a submodule to Views but none to Panels, so that doesn't help me. My problem is that I CAN'T set display based on domain. Both Views and Panels show something like "Path: http://example.com/" - hardcoded - I can only tack on a path after the /. I can't change the path to "http://example2.com/".

Any ideas what to do?

Ayza

michelle’s picture

There's no need to change the path. The path of a page is the part after the domain anyway. Just set up a variant for each domain. The module I was talking about is http://drupal.org/project/domain_ctools . Not a submodule, sorry, it's been a while.

Michelle