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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

0
votes
0answers
10 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
35 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
12 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
22 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
29 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
10 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
39 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
38 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
41 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
34 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
16 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
30 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
37 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
23 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
44 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
32 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
56 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
98 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
46 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
108 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
143 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
238 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
161 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
110 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
50 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
86 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
19 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
240 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
325 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
3answers
887 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 ...
0
votes
0answers
63 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
212 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
233 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
301 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
1k 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
223 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
352 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 ...
0
votes
0answers
201 views

Multi-site not working in Craft 3

My default site works fine but when I switch to the translated site ("/ru") I get the following error on anything other than the homepage: yii\web\NotFoundHttpException: Template not found: ru/tester ...
0
votes
1answer
179 views

How to create multisite in Craft CMS v3?

I am looking to create multisite in Craft 3. Is there any way to create multisite in Craft?
2
votes
3answers
540 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 ...
1
vote
1answer
102 views

User data segregation for multi-sites in Craft 3?

How will data be handled in Craft 3, when it comes to the 'multi-site' feature? Will most structured data will be accessible across sites? What about user data? If I have 'Site A' and 'Site B' ...
2
votes
2answers
1k 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
273 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 ...
1
vote
1answer
252 views

Craft 3 Multi Site - Entries/categories/assets fields aren't translatable?

I'm testing out the Craft 3 beta's multi-site capability at the moment to see if it's suitable for an upcoming project. My sample scenario is a school that runs out of multiple countries. They offer ...
1
vote
1answer
157 views

Two domains - single install - Live Preview works only on one

I have a multi-site setup on two different domains (actually subdomains) with a single Craft install. I have modified config/general.php file to make it work on both the subdomains. Each domain has ...
8
votes
3answers
2k 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 ...
3
votes
1answer
229 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 ...
3
votes
1answer
427 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 ...
3
votes
3answers
387 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 ...