Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [multi-site]

The tag has no usage guidance.

0
votes
0answers
7 views

Multi-site throwing a 404 — but only on staging server

I inherited a site and upgraded it from 2 » 3.1. The site is in both EN and ES. There's a button to toggle between languages and it works fine on my dev environment. site.co/en serves up English and ...
1
vote
1answer
25 views

Language Switcher with Users

I have the following setup for a language switcher. I have Member Directory pages which are using Users (rather than Entires or Categories). How can I update this to get it working on these pages? {% ...
1
vote
1answer
33 views

Setting Up Multiple Sites

I've tried following the guide for setting up multiple sites (https://docs.craftcms.com/v3/sites.html#creating-a-site) but I think i'm missing something. Firstly the craft install on your beta site, ...
1
vote
1answer
25 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 ...
1
vote
2answers
59 views

If other languages are not defined show english

Is it possible to get the english content on the, for example, Spanish site if the Text for the specific language is not defined yet? I do not mean a redirect! The English version should be displayed ...
1
vote
1answer
38 views

Set primary site

I have a multi-site setup and toggled the primary site inside settings -> sites to "off". So now I don't have any primary site anymore and I get an error preventing me from accessing my admin page ...
1
vote
1answer
27 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 ...
1
vote
1answer
20 views

Is it possible to create a new multisite site via a Craft Plugin/Module?

Does Craft provide a way to programmatically add a new multisite site through a plugin or module?
1
vote
1answer
40 views

Craft Commerce multisite, different tax rates

In Craft 3, Commerce 2 is there a way to set a different tax category or rate on a cart/site when using commerce in a multi site environment? Site A (b2c website) has tax rate 1 (21% with tax included ...
0
votes
1answer
24 views

How can I handle the identical SEOmatic config for multi-sites?

I'm using the amazing SEOmatic plugin in a multi-site config in craft 3. I have a total of 18 sites and they share a lot of identical data. So I was wondering if it was possible to export the ...
1
vote
1answer
31 views

Can I setup multiple sites under one Craft install?

I have not used Craft much, but can I setup multiple sites under one Craft install? If I can, which version of Craft is needed? Thanks.
2
votes
1answer
34 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
65 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 ...
1
vote
1answer
35 views

Craft 3 Multi Site - Have a related entries field relate to another site, but respect localization

I am trying build a hub of sorts using Craft 3. I want the main site to be the hub which manages most of the data, and then subsequent sites are built on top of that, relating where necessary so as to ...
1
vote
0answers
47 views

Craft 3 language switcher with same domain

Is it possible to create a multi language website in same domain? In the admin settings, I created a second site with the same domain, but with a different site language. templates/ ├── index.twig ...
1
vote
0answers
31 views

Correct Multisite MultiLanguage Approach

I am having a website with 4 languages and has two main sections B2B and B2C. So the final URLs will look like this: @web/b2b/de @web/b2b/ @web/de (b2c uses no indication in the link - is default) @...
1
vote
1answer
61 views

403 Error on homepage of second language

We are trying to setup a second language. We've gone through the steps and created a second website, we defined the base URL as @web/de for the second language (German). The deeper sections are ...
2
votes
1answer
41 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
1
vote
1answer
32 views

The Variable {{ siteUrl }} Produces Two /es/es/ On Multisite

I'm getting example.com/es/es for my Spanish site instead of the expected example.com/es when using the {{ siteUrl }} variable. The primary site is producing the expected example.com/ Any idea of ...
1
vote
1answer
42 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 ...
5
votes
1answer
123 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/...
0
votes
0answers
16 views

How to build a language switcher for Craft 3? [duplicate]

I have a Localization setup in Craft 3 for a two language site. URL structure: English - website.com/page (default) Russian - website.com/ru/page When switching between the two I guess I have to ...
1
vote
1answer
36 views

Entry translation differences Craft 2 and Craft 3

In the middle of a Craft 3 build and the client has requested locales like their Craft 2 multilingual site. I am confused by Craft 3 localisation. It appears I have to add a site as a language before ...
2
votes
1answer
64 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....
1
vote
2answers
544 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 ...
-1
votes
0answers
24 views

Error in categories after added second language - Craft 3

I had site with one language and some categories. Next I added new language and i have a problem because list of categories in new language wasn't duplicated. What more when I'm inside one of category ...
2
votes
1answer
32 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
233 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....
1
vote
0answers
19 views

Route manipulating - set regioncode before language-code

I just finished the structure of a new site, now I am faced with the problem: "regions". I thought I can use categories for routing. Because I need: example.com/REGION/LANGUAGE/about-us or ...
1
vote
1answer
73 views

Multisite system messages: change domain in {{ link }}, other than primary domain

How can I change the domain in the generated {{ link }} in a system email, other than the primary domain? I have a multi domain setup in craft3, and it works fine everywhere, except ... for the ...
0
votes
0answers
101 views

Craft 3 Multilanguage

I have a multisite/multilanguage Craft 3 CMS setup. how can I setup a search form for my primary site and the /en version. The HTML for my form is <form action="{{ url('search') }}">. My ...
2
votes
1answer
42 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 = ...
0
votes
1answer
28 views

Global field duplicated

I have two sites. Everytime I add global field content (slogan for example) it adds the same to the second site, and vice-versa. Anyone has any idea how to stop that?
1
vote
1answer
135 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 ...
0
votes
0answers
63 views

SOLVED - Adding a Site does not propagate entries

I've searched for a while, but I haven't found anyone else asking my question. When I create a new site (multi-site) and enroll a section in that site, I get an error when I try to edit an existing ...
1
vote
1answer
131 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 ...
1
vote
1answer
61 views

Group Sites by Groups

We have many country websites on different continents. In the CP we group the sites, where the group has the name of the continent. Now we want to group the sites in the templates in the same way. I ...
2
votes
1answer
81 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. ...
1
vote
1answer
216 views

Craft 3 multisite - best practice to minimize confusion and database size?

Usage Scenario One organization with branches in several cities. Most of the events in one city are only advertised to that one city, but some of the larger events in any given city will be advertised ...
1
vote
1answer
65 views

Locale URL segment being duplicated, eg https://website.test/en/en/

Problem I have a problem on a local Valet setup: the locale URL segment is appearing twice in URLs. Eg from a page at URL of en/about/approach, {{ url('about/approach')}} outputs https://website....
1
vote
1answer
282 views

Craft 3 multi site publish options

If a user has permission to publish on multiple sites, he by default publishes to all of them. If he wants to exclude some sites, he needs to go in each one and turn off the post for that site. This ...
2
votes
1answer
226 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, ...
1
vote
2answers
505 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
1answer
303 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.). ...
1
vote
1answer
206 views

Disabling individual sites on a Craft 3 multisite

Is there a way to disable non-primary sites on a multisite setup so that users are redirected to a 503 template? I can't see any configurations that allow me to to this. All sites are either disabled ...
0
votes
0answers
105 views

Multilanguage/multisite routing with templates only

As explained here: https://docs.craftcms.com/v3/routing.html there are multiple routing levels. The 4th level is "Does the URI match a template?" My question: Is it possible to have a certain folder/...
3
votes
1answer
164 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 ...
1
vote
1answer
21 views

Can user group permissions be used to override entry section locale settings?

I have created a localized site with 9 locales for a client in craft v2.6. They are now requesting us to create a user group for each locale so they can assign editors for each of those regions. When ...
3
votes
2answers
479 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 ...
3
votes
1answer
486 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 ...