Skip to content

Domain Driven Environment #1421

@AIC-BV

Description

@AIC-BV

Hello

We are looking to extend our website further.
We want to start using our mydomain.nl domain name (currently only .be).

mydomain.nl will generally have the same content as mydomain.be, but might be different in some cases.
For this I set up Domain Driven Environment: https://wintercms.com/docs/v1.2/docs/setup/configuration#domain-driven-environment

I want to create a new theme.
Which, if I understand correctly, it automatically inherits everything from the already existing theme, and only overrides the files found in the new theme.

I currently have

/config/Environment.php
'hosts' => [
    'localhost' => 'mydomain-nl',
    '127.0.0.1' => 'mydomain-nl',
    'www.mydomain.nl' => 'mydomain-nl',
],
/config/mydomain-nl
    | - cache.php ('prefix' => 'mydomain-nl_cache')
    | - cms.php ('activeTheme' => 'mydomain-nl')
    | - session.php ('cookie' => 'mydomain-nl_session')
/themes/mydomain-nl
    | - assets (empty)
    | - content (empty)
    | - layouts
      | - home.htm (a simplified layout for testing)
    | - meta (empty)
    | - pages (empty)
    | - partials (empty)
    | theme.yaml

But going to http://127.0.0.1:8000/nl doesn't seem to do much (-> my simplified home page layout is not shown but the existingtheme home.htm is used instead). I want to test this on 127.0.0.1:8000 first.

In the database I set system_parameters: cms | theme | active | NULL
I did php artisan cache:clear but the theme is not switching based on the url.

Any idea what I am missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions