luc.petitjean61931 said:
Hi,
I just installed this free plugins which make the trick about the theme: https://bitbucket.org/keiosdevs/oc-multisite/src/master/
/* * Listen for CMS activeTheme event, change theme according to binds * If there's no match, let CMS set active theme */ Event::listen( 'cms.theme.getActiveTheme', function () use ($binds, $currentHostUrl) { foreach ($binds as $domain => $bind) { if (preg_match('/'.$currentHostUrl.'/i', $domain)) { Config::set('app.url', $domain); return $bind['theme']; } } } );I hope you will ba able to help me.
Best regards.
Luc.
Please Disable it, as my plugin is not guaranteed to work with third-party plugins that partially duplicate functionality (this used "cms.theme.getActiveTheme" event). I will not make a secret out of this, since partly the idea of this plugin (and not only it, as well as other disparate ideas from the Internet) formed the basis of the first (free) version of MDomainsLite (I removed it from the Marketplace, as I believe that free products do not develop because they are free of charge and always remain in "unfinished" form, since the author does not have time for this due to lack of motivation). But my plugin has long outgrown all existing alternatives in terms of functionality and another more advanced project is on the way, I will not get ahead of myself - this is a completely different plugin (partially with the functionality of this one), but of better (+ will support DNS servers and Web -server).
Last updated