Questions tagged [multi-site]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19
votes
4answers
4k 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 ...
7
votes
3answers
4k 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 ...
6
votes
2answers
682 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/...
5
votes
1answer
1k 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 ...
4
votes
5answers
5k 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 ...
4
votes
2answers
5k 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 ...
4
votes
1answer
880 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 ...
4
votes
1answer
452 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 ...
3
votes
2answers
400 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 ...
3
votes
1answer
36 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 ...
3
votes
3answers
610 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 ...
3
votes
1answer
198 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. ...
3
votes
2answers
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 ...
3
votes
1answer
451 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 ...
2
votes
2answers
4k 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 ...
2
votes
3answers
2k 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 ...
2
votes
2answers
1k 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 ...
2
votes
2answers
1k 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 ...
2
votes
1answer
116 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 ...
2
votes
1answer
73 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?
2
votes
1answer
791 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....
2
votes
1answer
557 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.). ...
2
votes
1answer
3k 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 ...
2
votes
2answers
110 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 (...
2
votes
1answer
51 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
2
votes
1answer
129 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 ...
2
votes
2answers
292 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....
2
votes
1answer
68 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'>...
2
votes
1answer
523 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 ...
2
votes
2answers
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 ...
2
votes
1answer
182 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. ...
2
votes
1answer
227 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 ...
2
votes
1answer
169 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 ...
2
votes
1answer
65 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
2
votes
1answer
181 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 ...
2
votes
1answer
27 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 ...
2
votes
2answers
71 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/...
2
votes
1answer
102 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 ...
2
votes
1answer
63 views

Second Site Channel URL Route Not Working

I've set up a Resources section on a multi-site installation with the type of Channel. For Site 1 I've set the routing rule to be {resourcesParent.one.slug}/{slug} and for Site 2 I've set the rule as {...
2
votes
1answer
53 views

Can I get entries related to one category from a specific site?

If I can get entries in a category like this: {% set entries = craft.entries.section('sectionSlug').relatedTo('categorySlug').all() %} And a entries from another site like this: {% set entries = ...
2
votes
1answer
367 views

Struggling with language switcher for Craft 3

I am using SEOmatic helper class to get localizedUrls which is making life much easier! I would like to only display the localizedurl if the current entry is enable on that site. Below is what I have, ...
2
votes
1answer
892 views

Multisite Craft 3, different entries on different sites

Is it possible to show different entries on different subsites? Currently I can show different versions of the same entry (e.g. translations), but I want entry 1 to show on site 1, entry 2 on site 1, ...
2
votes
1answer
513 views

Structuring site with multiple subsites

I have to make a website that has a single craft installation and one database. Now the site is for a company that owns several garages which should have their own subsite on a subdomain. It should ...
2
votes
1answer
346 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 ...
2
votes
1answer
697 views

Multiple sites sharing global templates

Our university is made up of many small sites. I'd like to use craft for this. Love the auto update feature. I want each site to share template styles (ie. staff directories, document listings, etc....
1
vote
2answers
62 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) %} ...
1
vote
1answer
278 views

How to change the locals name in Localized Sites

I am developing multi-sites with the locals. Everything is fine. Is it possible to change the name of locals. I 'd like to give some other names to locals so that those can be more clear while ...
1
vote
1answer
53 views

How to order Sites

We have 38 sites running, divided over 6 groups. But for some weird reason on showing the sites list, 10 sites are showing up random. How can we fix this, or how can we order the sites on 'name' or '...
1
vote
1answer
93 views

Can two sites use the same channel, but have unique entries?

I have a multi-site application where my primary site is my company's main website, and the additional sites are small "microsites" for some of our projects. I want to share channels between my ...
1
vote
1answer
241 views

Error pages in multi site setup

I have a multi site setup for supporting multiple languages in Craft 3. '/' => German '/en/' => English In my general.php I have 'errorTemplatePrefix' => 'error/', When I enter '/...