Hot answers tagged

2

I would say the easiest thing is to create a set of Globals with all site specific settings. You can include custom settings for sites via Behaviors and Events and include your custom HTML and run custom logic to store those values in custom tables but I doubt it's worth it. A global set should be fine. By the way: GlobalSets are site specific - you don't ...


2

You can use the EVENT_AFTER_SAVE_SITE event to create/update the new section settings Event::on( Sites::class, Sites::EVENT_AFTER_SAVE_SITE, function (SiteEvent $event) { if ($event->isNew) { ProjectConfigHelper::ensureAllSitesProcessed(); $siteId = $event->site->id; // array of sections you ...


2

Assets aren't technically multi-site, in that it's currently not possible to limit Volumes to specific Sites, and all uploaded Assets will be available across all Sites, regardless of which Site it was uploaded from. Assets titles and custom fields can be translated, though. So the purpose of the Site selector in the Assets index is to have the titles and ...


2

Per current conversation on Github, this isn’t possible. https://github.com/craftcms/cms/issues/2854


1

I built my site switcher like this: https://www.thebasement.be/language-switcher-for-craft-3/ You will have to define an array for your site variables in the general.php for each environment: 'siteUrl' => array( 'default' => 'http://yoururl/', 'english' => 'http://yoururl/en/', ), You can also extend the user with a language field and let ...


1

I've come across this issue and imagine there will be a better solution in the future, but for now you can change your default site to the one you want to duplicate.


1

This is expected behavior when importing Matrix blocks, currently. See my comment on craftcms/feed-me#463 for a full explanation and possible workaround.


1

I ended up using the suggestion of Robin Schambach, in front-end templates using the {{ site.group.name }} E-mail contents can be changed in the admin section, using {{currentSite.group.name}} Craft 2: settings -> email -> Messages Craft 3.0: settings -> email -> Messages Craft 3.1: Utilities -> System Messages


1

Firstly the Craft install on your beta site, does it share the same database? Craft's multi-site setup is meant to use a single database. Secondly I'm not exactly sure what 'step 7' is asking me to do, could you please explain? Step 7: Configure Your Web Server and DNS 1. Configure your web server so the domain (e.g. beta.craftcms.com) points at the ...


Only top voted, non community-wiki answers of a minimum length are eligible