Questions tagged [sites]
The sites tag has no usage guidance.
14
questions
1
vote
1
answer
77
views
Default language is accessible without locale in URL
I have a website with 2 languages. Each language is setup as a different site.
Each site has its own base URL which is defined as follows: @defaultUrl/en and @defaultUrl/fr.
I have created a new ...
1
vote
3
answers
57
views
Simple site switcher
This one has been asked many, many times but lots of the solutions are a bit over the top for me.
I have two sites: English and French. URLs are mysite.com and mysite.com/fr.
If I'm on mysite.com/news/...
1
vote
1
answer
679
views
Get Entries from Every Site
How do I pull in entries from every site? I can't even seem to pass more than one argument to the .siteId parameter:
{% set entries = craft.entries({
section: 'resources',
siteId: [1,2,3],
}...
2
votes
2
answers
471
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 ...
1
vote
1
answer
35
views
Identifying users and site permissions when logged in
If I'm logged in as a user in user Group A, how can I tell which site I am currently viewing?
I want to be able to create a multilingual site switcher. But my setup is complex.
I have Company A, ...
1
vote
0
answers
100
views
How to auto disable "Enabled for Site" for certain sites (or groups) when creating a new entry
We have a mutli-country/language website with Craft 3 for many countries/languages.
When we create an entry (ecommerce product to be exact) in the English sites we dont want to enable it for other ...
1
vote
1
answer
62
views
What purpose does the site-selector under assets fulfill?
I'm kind of confused about the site selector under Assets, because from what I can gather it actually doesn't do anything? See this screenshot, top left:
I was first under the impression that I would ...
2
votes
1
answer
398
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 ...
0
votes
0
answers
60
views
How can I sync slugs within sites in the same Group?
I have a Craft site with approx. 13 Sites. They are grouped by language, e.g. German has Germany and Austria in it. Spanish has Spain and Mexico in it.
I imported all content to the main groups ...
1
vote
1
answer
72
views
FeedMe - all sites get overwritten by other foreign sites import, even though fields are translatable per group
I have about 16 sites added to my Craft CMS install. They are grouped together by language, so for example, I have 6 sites in English, and 4 sites in Spanish, 2 in German, and then some individual ...
2
votes
1
answer
343
views
How can additional custom fields be added to the Sites settings?
In Craft 3 Sites, there are some default fields like language, handle, etc.
I would like to add additional fields. Is this possible. Specifically, I want to add an Image field so we can add a flag ...
2
votes
1
answer
298
views
Is there a way to auto-create a sections Site Settings and propagate when a new site is created?
My customer will have lots of sections and lots of entries in each, for each site. Over time they will add new language sites.
When a new site is added, there are no sections or entries for it. So ...
1
vote
1
answer
340
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
1
answer
237
views
Same site name in multiple languages
We have a site with multiple languages so I created a site for each language.
I named these according to the language so, one is named "French", another "English" etc.
Now in the backend this is all ...