Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

Trouble with channel URLs and CSS files not pulling through - Craft CMS 4 Multisite

I'm building a multisite on Craft CMS 4 and I'm having trouble with channel URLs. At the moment I'm working locally and then pushing it to the hosting via github. I've created a folder for each site ...
George Bleasdale's user avatar
0 votes
1 answer
177 views

Get the localized handle and slug for "current" section for constructing breadcrumbs

I'm trying to contruct breadcrumbs for entries under a specific section. This feels like such a "how-hard-could-it-possibly-be" type of question, but I've been at this for a lot more time ...
InanisAtheos's user avatar
0 votes
0 answers
422 views

How can i get the current applied route in CraftCMS?

I'm using a dynamic route that loads a template. I'm on a multisite setup with a language switch in the header menu. To be able to switch between sites or languages, the dynamic routes need to have ...
jan's user avatar
  • 101
2 votes
1 answer
88 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 = ...
Johann Dyck's user avatar
3 votes
1 answer
816 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 ...
cballenar's user avatar
  • 1,419
3 votes
1 answer
4k 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 ...
Romain P.'s user avatar
  • 1,917
2 votes
3 answers
4k 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 ...
Nikolay Bronskiy's user avatar