Skip to main content
3 votes
Accepted

How to embed existing website in my Drupal 8 site?

Creating a subfolder inside your docroot folder such as docroot/elina-noe should suffice. Put all the subsite files into this folder and if there is a index.html you can access your subsite just by ...
GiorgosK's user avatar
  • 8,483
2 votes

Subdomain drupal sites cannot read domain cookies

You need to provide an appropriate value for $cookie_domain in settings.php. e.g. $cookie_domain = 'example.co'; That will allow you to set/retrieve cookies from example.co on foo.example.co, and ...
Clive's user avatar
  • 167k
1 vote

How to show a view instead of the node when the user click on the title

The way I see it, you have two options here: Replace the front page with a view of nodes, in the view render fields, and set the title of the display to link to the subsite for the node. Use ...
Jaypan's user avatar
  • 17.6k
1 vote
Accepted

how to prevent a theme from using templates of a sub themes (placed inside the parent theme dir)?

Themes are not allowed to be placed inside one another, as oppose to modules. Even though it works, there are undesired side effects.
loominade's user avatar
  • 138
1 vote

point a subdomain to a page without using domain module

I'm going to assume 1) you already have the proper DNS records set up and 2) you want a redirect (tells the browser to go to URL node/12664) and not a proxy rewrite (i.e. serve the page at node/12664)....
AdamB's user avatar
  • 164
1 vote

Language detection by domain breaks ajax requests over https

The problem is the CDN, which connects to Drupal via HTTP and to the client via HTTPS. Then all absolute URLs generated by Drupal have the wrong protocol. Not only this one for ajax, which is absolute ...
4uk4's user avatar
  • 100k
1 vote
Accepted

Alternative theming for subdomain

You could add the domain to the template names in a theme name suggestion hook for each template, but if you want to have a complete set of twig templates for each domain it might be easier to create ...
4uk4's user avatar
  • 100k
1 vote
Accepted

Page as homepage of subdomain

Install and enable domain module Enable the submodule named Domain Configuration Add a subdomain abc.example.com by clicking Create domain Go to admin/structure/domain/ and click on edit domain for ...
devunder's user avatar
  • 1,194
1 vote

Base URL issue in Subdomain

I like adding the redirect to sites/default/settings.php instead of .htaccess (just because Pantheon ignores .htaccess redirects and a lot of my sites are hosted on Pantheon). I'm also just more ...
Anne Bonham's user avatar
1 vote

How to name multi-sites for different environments (dev and staging)?

You can modify the site names for staging site in the file sites/site.php Also update the settings.php file with the credentials of staging site. Also need to update the site url from the host ...
developer's user avatar
  • 440
1 vote
Accepted

How to name multi-sites for different environments (dev and staging)?

I think you may be looking into aliases. On your sites folder there should be a example.sites.php. It basically allows aliasing sites to different names. You could create an if and based on some ...
rovr138's user avatar
  • 1,018
1 vote

How to make a menu link on a subdomain use the main domain as base_url

It will depend on your theme, but typically the menu array (e.g. $mail_menu in page.tpl.php) can be altered such that each menu item have the array element 'absolute' set to TRUE so that l() will ...
Shawn Conn's user avatar
  • 26.9k
1 vote

Which Rules Event in the Rules module gets triggered after clicking on a link?

Whatever you want to happen via Rules module when some link is clicked, if you're using Rules Event 'Content is viewed', you'll probably be too late: the content (or whatever the clicked link is ...
Pierre.Vriens's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible