Skip to main content

Questions tagged [multi-site]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19 votes
4 answers
5k views

Can I run one Craft install on multiple domains and/or subdomains?

Is it possible to have one Craft install running multiple domains and/or subdomains? For example having the same Craft install running a blog Channel at blog.example.com and also an about Single at ...
Simon Kuran's user avatar
  • 3,015
7 votes
3 answers
5k views

Multi-site setup in Craft3

Hi guys are the any more detailed tutorials on how to setup a multi site on Craft3 BETA? I created two sites now, a Danish and English through the admin (Settings → Sites). The domain is the same but ...
trustkool's user avatar
7 votes
2 answers
2k views

How to setup assets in multi site where each site should have its own assets?

I have a setup with multi sites that are separate domains. site-a.com site-b.com I would also like to have assets separate for each site, like so: site-a.com/images/picture1.jpg site-b.com/...
EyOwrH's user avatar
  • 143
5 votes
2 answers
9k views

Craft 3: how can I set dynamic Base URL in sites setting?

Sites localized versions are setup using Base URL like this: — http://{baseUrl}/en/ — http://{baseUrl}/fr/ But {baseUrl} variables are not transformed using craft.app.sites.getAllSites(). {% set ...
Romain P.'s user avatar
  • 1,852
5 votes
1 answer
2k views

Site set up with mutiple sub domains

I will build a group site in craft which will have the main domain and multiple sub domains. e.g. domain.com property.domain.com connect.domain.com The news feed on each sub domain will be different ...
mmc501's user avatar
  • 1,789
5 votes
1 answer
846 views

Multi sites: how to give each site a home single entry?

I've been experimenting with Craft 3 and Multi Sites and feel like I'm missing something... My organisation has a main homepage and multiple sub-sites. I have a Single Section called 'home' that ...
jack4000's user avatar
4 votes
5 answers
7k views

Craft 3 language switcher

Does anybody successfully implemented a language switch run Craft 3? Trying the Craft 2 variant slightly adjusted but still running into issues: Invalid site handle: nl <ul> {% set otherLocales ...
Robbie Post's user avatar
4 votes
2 answers
13k views

How do I get the primary site URL?

Is there an available variable for the primary site URL in a multi-site CraftCMS setup? I need a variable that I can attach to my logo that will take the user back to the primary site. I could hard ...
Vaughn D. Taylor's user avatar
4 votes
3 answers
2k views

How do you save a new Entry to be enabled on 2+ Sites?

I've made a plugin that let's you import Entries from a CSV file and I'm working through adding localization (Sites) support to it, but I can't figure out the right way to enable an Entry for a second ...
khamer's user avatar
  • 281
4 votes
1 answer
1k views

Craft 3 Multi-site with no "default" site

I have setup a Craft 3 multi-site with the following configuration: But what I really want is: Additionally, I want to have a 'default' http://localhost:8888 so I can always redirect to /en or /es ...
Rosana Ruiz's user avatar
3 votes
2 answers
2k views

Craft 3 Multi Language Setup

Okay, I am here because I would like to have a site in the following structure: https://site.com (default english version) https://site.com/ko (korean) https://site.com/pt (portuguese) I would like ...
Dan Zuzevich's user avatar
3 votes
2 answers
2k views

Craft 3 multisite - are entries accessible between sites?

In multi-site is it possible to access entries between sites in the templates. Like a feed? ie. entry "a" on site "A" shows up in an index on site "B", and links back to the entry on site A, not a ...
Micah Morgan's user avatar
3 votes
1 answer
2k views

Can you get the baseUrl for site by handle or id?

I am making a super simple language switcher. And I was wondering if there is a way to get the baseUrl for a site by id or handle, something like this: <a class="navbar-item" href="{{baseUrl....
Danielle Frappier's user avatar
3 votes
1 answer
154 views

How to save entry to the current site from the front end?

I have a multi site setup and a front facing entry form, which saves entries always to the same site (and not the current one which is weird). Is there a way to define to which site the current ...
Lukigi's user avatar
  • 565
3 votes
1 answer
4k views

Craft 3: with Base URL of site set up using @web alias, how to display the original URL in Twig templates?

I use the @web alias in the configuration of the base URLs of the sites (following Craft 3 documentation). The @web alias allows a shortcut to the URL of the folder that contains the index.php file ...
Romain P.'s user avatar
  • 1,852
3 votes
3 answers
808 views

Possible to share assets, templates and plugins across two domains but not all content?

I've seen many similar questions (Multiple databases, single codebase) but now a little confused on the best approach. This is our first Craft CMS site so still learning the possibilities. We have ...
JonnyT's user avatar
  • 324
3 votes
1 answer
1k views

How do I dynamically define Asset Volumes' Base URLs for different Sites?

There must be a simple answer for this but despite fumbling around with it for quite a while and searching the web for answers I am stymied. Perhaps I'm approaching it in the wrong way. I'm feeling ...
Kirk Roberts's user avatar
3 votes
1 answer
588 views

Is it possible to create category for only one site in a multisite setup?

If not, how would you best approach this issue? For us, different sites have different categories, and also, not always the same number of categories. At the moment, when we create a category, it ...
EyOwrH's user avatar
  • 143
3 votes
1 answer
557 views

What is the proper way to set `currentSite` in a CP template when managing multi-site stuff in Craft 3?

In some of our plugins, we have added multi-site support. For the most part, things are working fine but I'm feeling a bit confused about the correct way to set the currentSite in the Control Panel. ...
Ben Parizek's user avatar
  • 13.5k
3 votes
2 answers
1k views

Craft 3: multisite and assets

I am a little bit confused by the documentation about assets. It says that paths are relatives from the directory that holds the index.php file. Now, I am working on multisite, with the following ...
Braintrash's user avatar
3 votes
1 answer
460 views

Multi sites: should I use Craft 2 locales, or go with Craft 3 alpha?

I have a couple of imminent projects that will need some type of multi-site support. One is a large project that will need to share data between at least 3 sites. Where data is entered in one site and ...
glider's user avatar
  • 647
3 votes
1 answer
429 views

Structure a site with multiple locations with categories, structure or "multisite"?

I'm proposing to use Craft for a company that runs multiple golf courses. Along with some general pages for the company as a whole, each location (course) is to have it's own microsite, for want of a ...
Tom's user avatar
  • 135
3 votes
0 answers
327 views

Copy Content from original site to new site (multi-site)

I have an English site with content, but now I need to create another site in French. So I'm setting up a multisite for my Craft install. I want to copy over all my English content over to my new site ...
Holly Do's user avatar
2 votes
3 answers
4k views

Loop through all sites in multisite installation

Who knows how to loop through all sites in multisite installation? I want to create kind of drop down menu to switch between websites. I've found this code inside the backend template but looks like ...
Nikolay Bronskiy's user avatar
2 votes
2 answers
1k views

Displaying one site's content in another site (Craft 3 Multi-site)

I've got a bunch of entries in Site 1. I need to display them in Site 2. If I specify the site, I get the entries. {% set entries = craft.entries.section('cenicNews').site('cenicOrg').limit(10) %} ...
4midori's user avatar
  • 656
2 votes
1 answer
128 views

Specifying administrators for localized sites?

From what I've gleaned from other q&a, it's possible to set up multiple localized sites under one installation of Craft, but can you assign separate administrators to each? I'd like to set up ...
Dim Sim's user avatar
  • 23
2 votes
1 answer
172 views

How do you insert the site name into a default asset path?

Multisite question.... how do I output the site into the assets path? currentSite won't work because its the admin panel, so the current site is always the default site. Using the below, I will always ...
cherrykoda's user avatar
  • 1,114
2 votes
1 answer
262 views

Is it possible to localize Freeform fields and labels?

Is it possible to localize labels and other params of Freeform form fields on the multilingual site? Thanks
Oleg's user avatar
  • 103
2 votes
1 answer
341 views

How to route 404 errors for multi-site Craft?

Craft looks for /templates/404 by default. What do you do if you have multiple sites?
4midori's user avatar
  • 656
2 votes
2 answers
818 views

Craft 3: get enabled sites of an entry

I'm looking for a way to list all the enabled sites for a given entry. I couldn't find some sort of getEnabledSites method that's similar to the available getSupportedSites. The latter only returns ...
biko's user avatar
  • 670
2 votes
1 answer
791 views

Craft 3 multi-lingual multi-sites setup with shared assets

I have 2 almost identical websites. Both have almost the same layout but different colors (so different CSS file). They share most of the same templates and assets (images, css, js, videos, etc.). ...
Tom De Smet's user avatar
  • 1,456
2 votes
2 answers
114 views

Run a localized site using one Craft install on 2 servers

Is it possible to share one craft install across 2 servers? Say I have a US site (en only) hosted in the US and a Canadian site (en and fr) hosted in Canada. E.g. usa-site.com (english) ca-site.ca (...
biko's user avatar
  • 670
2 votes
1 answer
460 views

user session for Multi Site

I have a multi-site and they are under 1 root domain and the default site is food.com and bread.food.com is the additional site. How can I share the user session data of food.com to bread.food.com. My ...
Jeriel Jacinto's user avatar
2 votes
1 answer
691 views

Propagate entries manually between sites

I have a client that wants to setup a multilingual site, but for the purpose of this site they only want certain entries to be translated. If I setup sites that use a section which is configured to ...
jishi's user avatar
  • 273
2 votes
1 answer
192 views

Best practice for multi site development, staging, etc. [Special snowflake details inside]

The story: Site A is running in Craft 3 as the primary site. (On a subdomain, if that matters.) Sites B and C are running in ExpressionEngine 2. I need to write new HTML/CSS for sites B & C. I ...
4midori's user avatar
  • 656
2 votes
2 answers
1k views

Search all Sites on Multisite

I have a multisite setup and and a search bar at the top of each site. Currently it just searches within that site: {% set theSite = craft.app.request.getSegment(1) %} {% paginate craft.entries....
Chattervast's user avatar
2 votes
1 answer
114 views

Including CSS and JS files on multilanguage sites

Up till now, all my craft sites were single language. When including CSS and JS files from web folder, i used to use {{siteUrl}} variable, like this: <script src='{{siteUrl}}/plugins/jquery.js'>...
Ded Nolyxeux's user avatar
2 votes
1 answer
683 views

Craft 3: how can I set an ordered list of all sites, and set a display name different from the site name?

The Craft 3 multi-sites is very useful. However, I found the list dropdown while editing an entry confusing and awkward in my case. I have several sites group, each containing a localized version of ...
Romain P.'s user avatar
  • 1,852
2 votes
2 answers
2k views

Setting absolute path to asset files for Craft 3 multisite

Currently, I have 3 sites set up in Craft 3 beta. I'm trying to get all my sites to share one asset folder by using absolute path. However, I can't seem to set it up. The siteUrl is not parsing as I ...
Holly Do's user avatar
2 votes
1 answer
50 views

Multisite - Save the draft only to the site it was created in

I'm working on the multisite in Craft4 - 2 identical sites, but the text is in different language. I have a section with the Propagation Method set to Save entries to all sites enabled for this ...
Michal Bulla's user avatar
2 votes
2 answers
488 views

How to temporarily disable entries of one site version within a site group?

A client asked me to temporarily disabled all of its entries of one of its Site in a specific language. This entries should not be accessible anymore from their URL. The quickest and cleanest way to ...
Romain P.'s user avatar
  • 1,852
2 votes
1 answer
853 views

Multi-site - Setup remote asset volume to store assets on a per site/folder basis

We've got a Craft 3 (3.1.25) multi-site setup with three sites: Corporate (default) Brand A (brandA) Brand B (brandB) For this install there's 3 users setup with the following access to the sites. ...
Lee Haskings's user avatar
2 votes
2 answers
251 views

Craft 3.1.7 live preview multi-site only works on home page

I am running sta-A and site-b on same installation. I have cookie set for domain and have htaccess with CORS origin set to allow *, and also updated the nginx config to allow CORs. I know this last ...
joomkit's user avatar
  • 2,034
2 votes
1 answer
252 views

Live preview option not working for multi-site functionality

I am working on a site which has the multisite concept. Each site has its own base URL. The issue is that, if I have logged in to the admin with the primary site and access the preview option for the ...
Rock's user avatar
  • 23
2 votes
1 answer
78 views

Is it possible to have one Craft install running

Can a Craft install run on multiple domains and/or subdomains? For example having the same Craft install running a blog Channel at blog.example.com and also an about Single at example.com
Tuan nguyen's user avatar
2 votes
1 answer
792 views

Get globals from other sites

How would I get the global variables associated to other sites? For example, in an instance where I have three websites under the group languages for the English, Spanish, and French versions. I have ...
cballenar's user avatar
  • 1,409
2 votes
1 answer
71 views

Craft multi-site enable password protection

I have a multi-site Craft CMS set up with 6 sites. I am planning to live only 5 sites and I need to keep the 1 site in development phase. Also I want to enable fron-end password protection for the dev ...
JohnC's user avatar
  • 61
2 votes
1 answer
116 views

Multisite, second language Live Preview not working

I have an English site - https://dev.mysite.com and a Japanese site - https://dev.mysite.com/jp. Live preview works great for the English site, but the Japanese site has the following error: Mixed ...
Kelly B's user avatar
  • 76
2 votes
1 answer
407 views

How can I clone a specific Site in Craft, not the default?

I have many sites in Craft and I group them by language. For example, German has Germany and Austria sites in them. Spanish has Spain, Mexico and Colombia. The sections are set to propagate entries ...
Laurence Cope's user avatar
2 votes
2 answers
99 views

Mutiple sites and locales

I'm trying to setup alternate locales for content across several sites. I have the following scenario: - Group siteA - siteA.com/product-1 - Group siteB - siteB.com/product-2 - siteB.com/fr/...
Paul's user avatar
  • 339