Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
1answer
17 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
27 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
15 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
29 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 ...
0
votes
1answer
20 views

Is it possible to have one Craft install running

Can a Craft instal 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
25 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
24 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 ...
2
votes
0answers
36 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
12 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
20 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
29 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....
0
votes
0answers
53 views

Craft 3 Multi Site - Redirect 'default' to first locale

So following this post: Craft 3 Multi-site with no "default" site My NGINX config now looks like this: server { listen 80; listen [::]:80; server_name craft-3.dev; root "/...
0
votes
0answers
24 views

Isolating Category Groups in a Multi-Site Environment

I'm working on a multi-site project that will be a network of blogs. Each of the blogs use the same templates and the only thing that's different is the content. All of the entries are all taken care ...
1
vote
2answers
97 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 ...
0
votes
0answers
17 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
25 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'>...
1
vote
1answer
60 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
13 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 ...
0
votes
0answers
59 views

Managing assets on a blog-type multi-site

Im currently building a multi-site blog solution in craft 3. The idea is to have one site per blog and let all the blogs share the same fields with some variations in the templates based on their ...
1
vote
1answer
45 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
64 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
40 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
20 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?
0
votes
0answers
41 views

Craft 3 Title Translation

I'm using Craft 3 to hold information about services that are provided by a multi-site company. Some aspects of a given service (e.g., name, description) must remain the same for all sites, but ...
1
vote
1answer
75 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
34 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
68 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
38 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
60 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
144 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
49 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
193 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
177 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
340 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
224 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
149 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
75 views

Multilanguage/multisite routing with templates only

As explained here: https://github.com/craftcms/docs/blob/v3/en/routing.md there are multiple routing levels. The 4th level is "Does the URI match a template?" My question: Is it possible to have a ...
1
vote
1answer
106 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
20 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
1answer
312 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
392 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 ...
2
votes
4answers
1k 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 ...
1
vote
0answers
67 views

How can I create a section or category in Craft 3 that shares its entries (i.e. not multi-site)?

Is it currently possible to create a section or category that shares the same entries across multiple sites? I can currently create a section, and once I save an entry, it is propagated to all sites. ...
1
vote
0answers
260 views

Craft 3 Multisite: Template not found

I'm trying to set up a multisite with Craft 3, and the client wants a set up with URLs that look like foo.client.com, with foo.client.com/2018 and foo.client.com/2019. Right now, my index.php file ...
1
vote
1answer
315 views

Craft 3 with Multi-Site: how to not set a primary site, or add a first segment to all primary site URLs?

I have a main domain, www.mycompany.com, which has several groups of sites, which are available in several languages: www.mycompany.com/international www.mycompany.com/sales/en www.mycompany.com/...
1
vote
1answer
1k 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
1answer
338 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, ...
3
votes
2answers
2k 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 ...
1
vote
1answer
251 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 ...
3
votes
2answers
474 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 ...