how can i separate the frontend views in a different domain from the backend, as i need to have one cms backend and many pages with different domains?
Hi @E-motion-Agency in order to find a solution for that questions i think you need to make your example more explicit.
- Do you want to have different pages for different domains? Or are those different domains but the same cms content (like alias domains)?
- Can you share the same database among those domains?
backendi assume you mean the admin interface?
There is currently a huge PR pending from (@boehsermoe) regarding “multiple websites support” (which means, multiple domains which point to the same webserver), so if this is what you are looking for, its in the making https://github.com/luyadev/luya-module-cms/pull/274
1- Do you want to have different pages for different domains? Or are those different domains but the same cms content (like alias domains)?
answer: same cms content (like alias domains).
2- Can you share the same database among those domains?
answer: yes the same database
3- With backend i assume you mean the admin interface?
answer: yes luya admin interface
So you would like to have:
Then you can just use https://luya.io/api/luya-web-Composition#$hostInfoMapping-detail
'hostInfoMapping' => [ 'http://mydomain.com' => ['langShortCode' => 'en'], 'http://meinedomain.de' => ['langShortCode' => 'en'], ],
This would be the behavior for alias domains. But when you like to separate the content from a domain, then you have to wait until the above mentioned PR is merged
Does this answer your questions? Otherwise you have to explain a little better what you like to do, maybe with concrete domains.
Yes, thanks you
case two that what exactly i need, The PR solution is the answer for my problem.
So i can wait for merge