Hello,

For those who have experience with the Domain Access module...

I setup a multisite installation of drupal with domain access. I also needed to restrict certain content types by role or even restrict specific nodes. There is a module called Content Access that does this. I installed content access and domain access together. Content access behaves incorrectly with domain access. In content access you can change the weight of the rules you apply (allow other access modules to carry more weight). I tried -10, -1, 0, 1, and 10. When I set content access as last priority, none of the content types I enabled for anonymous users are viewable to anonymous users anymore. The content becomes restricted. When I change the priority to first anonymous users can view what I choose; however, none of the domain specefic content remains domain specefic. Pages created for one domain can be seen by all domains (domain access is setup to have domain specific content).

Has anyone been able to get domain access working with these requirements? Do I need a different module that is more compatible?

Gurus of the www, please help!

Comments

GregL83’s picture

No domain access experts?? Does anyone know of a Domain Access Module Forum? Perhaps, I can fine a better place to address this concern...

Thanks.

GregL83’s picture

I am going to rephrase my question.

How do I restrict/allow user(s) to view, update, delete nodes by: node, content type, and role? While using Domain Access (multisite)???

Without using domain access, a module called content access has all these functions; however, it doesn't work correctly with domain access installed.

These are standard web functions and I know someone with domain access experience has answers.

I need to make some pages accessible to anonymous users and then pages only accessible to members. These pages should not be shared across domains. Perhaps, super member pages (roles).

GregL83’s picture

Install the multiple node access patch for domain access and use other node access modules as intended.

Note: You have change the Domain settings to allow multiple node access modules...

gskyjr’s picture

Hi GregL83, I actually have a question for you :-) We have installed Domain Access but can't figure out how to configure it so each site looks differently and has different content. What settings have to be changed?
Thanks!

Andy1981’s picture

I've only just started using domain access, and have a few questions myself. However, changing the look and feel for each site can be done by using a unique theme for each site (or replicate an existing theme and give it a new name - and make the necessary changes - such as placing blocks in different regions). For this, the domain theme module needs to be enabled (included in 6.x-2.0-rc5), and then each theme can be assigned to each domain. Hope this helps.

Different content is something I'm still figuring out myself. There seem to be options for assigning content to different domains (as opposed to all affiliated domains, but I'm still working this out).

Anyone else succeeded? This also raises a question about the url. Using path auto, the content doesn't get assigned as:

domain.com/content1
domain.com/content2
sub.domain/content3
sub2.domain/content4

but still shows as

domain.com/content1
domain.com/content2
domain.com/content3
domain.com/content4

when looking at the sitemap generated by the xml sitemap module. Is there a way, or another module, that might change this?

Still, great module guys. Domain access seems to do wonders.

jlab’s picture

Hi GregL83 I stumbled onto the same problem...

Where do I get this patch? And is your multi domain site now running fine with content_access module?

Reading this post gives me hope for a little light at the end of the tunnel ;)

jlab’s picture

Hehe found it in the patches directory of domain module...

I have uninstalled the content_access module and reinstalled it after the patch...

But it still seems like it is not working....

May I ask against which Drupal version did you use this patch?

David Naian’s picture

of code when you use the patch inside the patch folder. I have gone throu all the patch files and I applyed the patches manually. Sorry I do not remember
what line, but it refer to coomon.inc and the node.module if I remenber well.
Oh yes and the Domain.module. I'm sorry you have to read throu all the patches i guess.
Hopefully this helps.
Cheers

jlab’s picture

I got it up and running... And everything seems to be working smoothly now.

David Naian’s picture

You are Welcome, as I'm not really confident with the code and also with my setup, by occasion would be nice if you may have a quick look at my test site.
You will find it at http://adaccs.at, I repeat just by choice. I am still checking the permission structure and am not sure that the sub domains are linking in the correct way.
Bye

mnp’s picture

hi all
iam unable to configure domain access module in my site

i gave in hosts file like this
127.0.0.1 localhost
127.0.0.1 newone.localhost
127.0.0.1 web.localhost

while creating a domain record i gave newone.localhost and sitename newone
but where is the my subdomain folder how to access this site iam confusing
before creating domain record do we need creating subdomain folders and where we need to create that folder
please tell me
very critical to me

David Naian’s picture

Hi, @manasapenchala

I will try to follow you even it will a bit difficolt for now. I guess you are no native english so do not panic I'm also no native english ;-)

1. Í guess you speak about an installation on your own computer at the moment: is that right?
2. It will help if you can tell me what for a system are you using: windows? or mac? or linux?

mnp’s picture

thanks for ur reply
my system configuration
ubuntu8.01/linux
php5
apache2

David Naian’s picture

Ok, and you

1.have installed Drupal 5.x right?

2. You installed the Domain Access 5.x-1.9 Module right?

3. Where did you install the Domain Access Module ?

In the Domain Access module folder you may see other sub-modules:

You may see Here a pictures about the content of the Domain Access module. Sorry is out of Drupal site but I do not have yet right to post pictures on this account.

The main problem if it does not work with your configuration is that you have eventually apply patches
before every feature of access module mya work correctly.

Let me know

mnp’s picture

iam using
drupal6.8
domain 6.2rc6 version
my site is news
installed in
news->sites->all->modules->domain access
thanks david

David Naian’s picture

Good, I thank you, for providing informations that will help to help you to have the Domain Access module working.
The place you installed the Module is Ok so far I can say.

1. Now please see what version of the Domain Access module have you installed:

there are two(2) for Dupal.6

A. Domain Access 6.x-1.2 (older version)
B. Domain Access 6.x-2.0-rc6 (Most update version)

So version A is identified with the simbol "Attention" on the project page Domain Access project page
this inform you that this version can be used but it's not anymore developed and update.

Version B is the most actual version of the Module and is the best and is Identified in the Domain Access project page
with a green simbol. You should use this one.

----------------------------------------------------

So at this point I can say that you have to see if in any folder of the Domain.Access.module
you will find file with the ending .patch this means that for that module you can apply a patch
for any additional features or site configuration caratteristic you wnat to add to your configuration.

Really most important is to read carefully, and if you are no native English, better many time, the instruction provided in the help text files installation.txt or readme.txt you will surely find inside the Domain Access module packages.