Questions tagged [domain-access]

Use it for the module for running a group of affiliated sites from one installation and a single shared database.

Filter by
Sorted by
Tagged with
0 votes
1 answer
42 views

Configure default domains for new content

We're using the Domain Access module to assign content to different domains. When creating new content the default domain record is checked, but not the others. The desired behavior: Example.com ...
Heebinho's user avatar
  • 101
0 votes
0 answers
33 views

How can one share content and users between two domains without using Domain module?

We have DomainA and DomainB that we want to both redirect to the same Drupal site. Because we want to share content, users, and database. The reason for this is because we are whitelisting our site to ...
John Wick's user avatar
0 votes
0 answers
40 views

Different values in an custom entity field for each domain?

I have implemented the Domain module and added a boolean custom field to a taxonomy entity that is accessible in all three domains: domain1.example.com, domain2.example.com, and domain3.example.com. ...
Md Eqbal Ahmad's user avatar
1 vote
0 answers
69 views

Limit view path to one domain

I currently have a Drupal 9 site running with Domain Access and a view with a relative path like contact. The site currently has two domains, linking the page to both domains like so: sub.domain.com/...
Sven V's user avatar
  • 11
1 vote
0 answers
96 views

Injecting service into another service does not work

I have to override pagecache service in order to have some custom validation logic to be executed for anonymous users. The issue is that I have the domain module's service domain.negotiator to be ...
Jaswin Singh's user avatar
0 votes
0 answers
84 views

How to use methods from entity class if it doesn't have such service?

I'm writing an EventSubscriber for the config entity of the domain module. My goal is to insert some data in its config on preSave event (it becomes from the patch for D9). Here is my code from ...
Yaroslav's user avatar
0 votes
0 answers
161 views

Issues with Domain Access module

Using Drupal 8.9.13. I cannot seem to make the site I am building functional with the Domain suite of modules installed. Symptoms: After installing and enabling the Domain module, the site generates a ...
Eugene K's user avatar
0 votes
0 answers
170 views

I am using PHP to determine the subdomain, but changing page doesn't change the result

In Drupal 7 I am using the Domain module to allow multiple subdomains of the format sub1.example.com, sub2.example.com, etc. When I am sure that I can correctly identify the current subdomain, I will ...
frank4360's user avatar
0 votes
1 answer
449 views

How to restrict access to specific php file to only athenticated users

I manually made a php file that has the ability to connect to the database and create table entries, it works fine, but now the problem is that if I leave it there, anyone will be able to access it to ...
julianx2rl's user avatar
0 votes
1 answer
106 views

Show user based on subdomain

Im using Domains Access to create a subdomain and already created all the virtualhosts, so that one is working. Is it possible to show a user based on domain name? Im creating a view, and i need to ...
lucasvm1980's user avatar
1 vote
0 answers
166 views

How do I handle a site with subdomain using the Domain Access module? [closed]

I have a site which as a federal level and a subdomain by state. I'm using Domain Access module which works great for some basic things such as contents by domains. But I've got other challenge to ...
Tibo's user avatar
  • 241
1 vote
2 answers
439 views

Double values (products) in Commerce cart form

I use Drupal Commerce version 8.x-2.15. I have a multilingual Drupal site with multiple languages based on domain. mystic.com -> EN language mystic.eu -> NL language etc I added relationships: (...
meez's user avatar
  • 1,333
-2 votes
1 answer
716 views

Cookie sharing on multidomain site [closed]

Can somebody please clarify, that cookie sharing in Drupal 8 is just possible for sub domains siblings of the same parent domain. Before this was discussed here: Multi-domain cookie - unfortunately ...
mogio's user avatar
  • 687
0 votes
0 answers
297 views

How to create a views contextual filter of the current domain

I'm using the domain module, but have not enabled the submodule 'domain access' because I'm already using open social group access, and want to prevent performance issues. I only need to filter views ...
Yuri's user avatar
  • 618
1 vote
1 answer
928 views

Can I still share data tables with multisite, using shared database, in Drupal 8 or do I need to use 'Domains' contrib module?

I have a multi-site setup that is working in Drupal 8 (8.6.13) - all of the sites share the code-base and database happily but I cannot seem to share data tables between the sites using the prefix ...
rwcorbett's user avatar
  • 203
1 vote
1 answer
2k views

How do I dynamically set up different cookies for multiple domains?

My site uses the Domain Access module to maintain multiple domains and sub-domains, such as: www.domain1.com, apple.domain1.com, orange.domain1.com www.domain2.com, dog.domain2.com, cat.domain2.com ...
GoingDrupal's user avatar
-3 votes
1 answer
80 views

Domain Access Source - Canonical

for now domain access and source set the correct canonical domain and show the links linked to the correct page. I can disable that and the links stay within the domain I’m currently on. Visitors won’...
Daniel's user avatar
  • 123
1 vote
1 answer
382 views

How to load all aliases of a domain

I'm using the modules domain and domain_alias on Drupal 8. I need to load all the aliases of a given domain. I have tried the following without success: $aliases = \Drupal::service('entity_type....
GoingDrupal's user avatar
0 votes
2 answers
475 views

Language detection by domain breaks ajax requests over https

What do I have: Drupal 8.6.2 Domain Access Language modules Cloudflare with https Problem: If in URL language detection option (/admin/config/regional/language/detection/url) I have "Path prefix"...
bigboy's user avatar
  • 71
1 vote
2 answers
3k views

How to pass dynamic parameters through a local action button?

I created a local action button with the following in my_module.links.action.yml: my_module.content.action: route_name: node.add_page title: 'My action' deriver: 'Drupal\my_module\Plugin\...
Kwadz's user avatar
  • 489
1 vote
2 answers
2k views

What is the equivalent of domain_get_domain()?

I need the equivalent of domain_get_domain() in the Domain Access module for Drupal 8, but I can't find it. I need to find the domain for the current request.
Delford Chaffin's user avatar
0 votes
1 answer
121 views

How to pass values to content creation page to set default values in form elements?

Introduction (not necessarily needed to be able to answer the question) I use Domain Access module to be able to manage different sites from one Drupal installation and a single shared database. I ...
Kwadz's user avatar
  • 489
-1 votes
2 answers
28 views

Test domain access module

I have used the domain access module to create 2 domains that our business use, and I wanted to test them in the CI cycle. How do I test them in CI that they are active and each domain uses the ...
Moses Liao GZ's user avatar
1 vote
0 answers
608 views

Domain Access Module not working for second domain?

I have installed the Drupal on Main Domain and install the module Domain Access. Under the setting of Domain I have setup the other domain where I want to use . EX: example.com Ex: example.com.au ...
Manmeet Khurana's user avatar
0 votes
1 answer
596 views

One site, two domains

We have a single site that we'd like to have two different domains: apply.school1.edu and apply.school2.edu. The site is at apply.school1.edu and we'd simply like to create a domain apply.school2.edu ...
Chris Howell's user avatar
0 votes
1 answer
66 views

How is domain_taxonomy_access module configured?

I am trying to use the domain_taxonomy_access module, but I do not know how it is configured. How I do so that the user of a certain domain can manage their newsletters? I am trying to implement the ...
chalo's user avatar
  • 431
0 votes
1 answer
136 views

Add paragraph domains to media View

I'm using media and domain modules. Nodes are assigned to multiple domains and there are image fields that link to media images on those nodes. Some content types also use paragraphs and these ...
webmaniac's user avatar
  • 268
0 votes
0 answers
37 views

Drupal urls include absolute paths

I just updated drupal core on website and my drupal alias do not work unless the full path to a directory is included Example: http://michael.tsikerdekis.com/ (works) http://michael.tsikerdekis.com/...
Michael's user avatar
  • 125
0 votes
1 answer
19 views

Swap out blocks based on domain name extension

We have a European site that is the same exact site for three different domain names. So www.mysite.eu, www.mysite.ie and www.mysite.ch all go to the same site. However, we would like to make very ...
Erich H.'s user avatar
  • 355
1 vote
0 answers
119 views

Domain Access and vagrant

I have made a copy of a Drupal 7 site with several sub-domains managed through domain access to a vagrant VM so I can experiment with it. I have my vagrant set up so I reach it through localhost on ...
tanbog's user avatar
  • 1,263
0 votes
1 answer
201 views

How to create a lightweight domain access alternative in Drupal 7

I have a password protected site mainly used for internal management of projects, but have regularly the need to publish some of its content for clients. For simplicity sake, I would prefer to keep ...
Yuri's user avatar
  • 618
0 votes
1 answer
86 views

How can I migrate the Domain publishing settings for nodes via SQL?

I am using Drupal 7 and Domain Access (latest stable versions). In my source site, there are nodes with "Domain access options", "publish to.." then a number of selected domains. I migrate the data ...
Darren's user avatar
  • 293
0 votes
1 answer
4k views

Too many redirects error with https and domain access module

I'm redirecting traffic for my various domains to HTTPS. Things seem to work fine on my local, but when I deploy to my production site I get the "www.mysite.cn redirected you too many times." error. I'...
Tom's user avatar
  • 21
0 votes
1 answer
132 views

Different domain per node

I wonder if it is possible to have different domains set for, for instance, per path basis, or view basis, or node id basis?
user avatar
0 votes
1 answer
403 views

Views programmatically remove node access (tag)

I'm trying to remove the node access check from a view programmatically. But i'm not sure where the access tags are added/executed. function MYMODYLE_views_query_alter(ViewExecutable $view, ...
mgoubert's user avatar
  • 365
0 votes
1 answer
724 views

Get node path for different domain

I have a series of nodes which are published on up to 7 different domains on the same single Drupal 7 install. Whilst I can use url('node/12345'); for nodes published to the current domain, I would ...
Alexander Holsgrove's user avatar
3 votes
1 answer
67 views

Is it possible to get rid of content duplicates?

I've got a site, mysite.com. Now I'm trying to add blog on it at sub-domain, blog.mysite.com, using the Domain Access module. When I create an article in blog, with alias blog.mysite.com/article-...
Kiskenbassker's user avatar
1 vote
1 answer
528 views

Domain Access and One.com hosting (funny subdomain rewrite)

I have a D7 installation that uses Domain Access to distinguish between a main website example.com and a minisite event.example.com. They share the same document root / Drupal installation and the ...
Bla Blaat's user avatar
1 vote
1 answer
1k views

Share nodes and users across multiple sites

I understand sharing databases/tables is frowned upon as a practice, however, I need to share users and some nodes between two websites. What are the alternatives and what are the pros and cons of the ...
tanbog's user avatar
  • 1,263
0 votes
1 answer
58 views

Domain override module in drupal 7

I have a main site with "domain access" module. It has 5 multilingual sub sites with subdomain(single database). I want to publish content from the main site to the subsites. This is already working ...
Remya Anish's user avatar
1 vote
1 answer
189 views

Domain Access: Subdomain -> same views-path - different view?

I am a beginner by module domain-access and have a question. standarddomain: example.com subdomain: m.example.com In my standarddomain i use a views-page with path example.com/myviewsgallery (Views ...
Steppke's user avatar
  • 11
2 votes
2 answers
829 views

How to add domain access to custom entity?

Trying to do this for a custom entity, but it seems like Domain Access doesn't have its own entity to reference, and I'm not quite sure what method to use. I'm still looking into it, but since I ...
RaisinBranCrunch's user avatar
0 votes
1 answer
87 views

How to use a sub-domain for a specific content type?

I have a blog content type. My client would like the domain to be blog.example.com for only that content type. I would like to know the best way to approach this, whether it be a rewrite rule or using ...
Janey's user avatar
  • 1,270
0 votes
1 answer
275 views

Redirect in multidomain sites

My story is: I use module Domain Access for Multi domain feature and Internationalization, Domain Variable for the multilingual features. I have these domains: www.domain-a.com (main domain) www....
Permana's user avatar
  • 254
1 vote
1 answer
67 views

content access does not work after changing domain

after designing and developing a website I changed its domain. Now any of the permissions are not working. every thing is OK appearently but the functionality is not OK at all.(I mean all the ...
shekoufeh's user avatar
  • 589
0 votes
0 answers
11 views

Prohibit indexing aliases and original paths for search engines [duplicate]

For the same website two domains are used. Would onedomain.com/node/100 be indexed by search engines for the alias onedomain.com/article/100 which is disallowed to be indexed by search engines in ...
gladiatorhl2's user avatar
0 votes
1 answer
315 views

How to disallow one domain path in robots.txt without any modules? [duplicate]

How to disallow one domain path in robots.txt? (there is a module which allows to do that but it is better to avoid it because of performance issues) For example, onedomain.com/path1/* must be ...
gladiatorhl2's user avatar
0 votes
1 answer
155 views

how to get row field for each node [duplicate]

i created a field called : (sitename_ar) and i have two rows (two domains) in {domain} field : and i have in my database these two fields {node} and {domain_access} : and i want display in view ...
Salaktarus's user avatar
0 votes
1 answer
102 views

What is the most efficient way to create and manage 500 sales/landing pages

For a domain sales business, what is the best way to create and manage about 500 landing pages, each connected to a top level domain name? I have worked with the Domain Access module in the past, but ...
Yuri's user avatar
  • 618
1 vote
0 answers
245 views

domain access: Alias of a main domain to point to subdomain

I´ve got an domain-access installation with the default domain "capital.com" and a subdomain "country.capital.com". I´m struggling now with pointing from a main domain to this subdomain. Like so: ...
Vincent-Jo's user avatar

1
2 3 4 5