If there is only translation between localized site, we probably dont need to add new templates
templates/
├── account.twig --> default site A account template, and works for both EN, DE, FR localization
But with multiple sites + localization,
Site A, Site B, Site C can have a large difference in page layout.
it becomes:
templates/
├── account.twig --> default site A account template, works for all EN, DE, FR localization
└── siteBen /
└── account.twig --> siteB EN account template
└── siteBde /
└── account.twig --> siteB DE account template
└── siteBfr /
└── account.twig --> siteB FR account template
└── siteCen /
└── account.twig --> siteC EN account template
└── siteCde /
└── account.twig --> siteC DE account template
└── siteCfr /
└── account.twig --> siteC FR account template
Can we make use of siteGroup concept, and workout something like this:
templates/
├── account.twig --> all sites default account template, works for all EN, DE, FR localization
└── siteGroupB /
└── account.twig --> siteGroupB account default template, works for all EN, DE, FR localization
└── siteGroupC /
└── account.twig --> siteGroupC account default template, works for all EN, DE, FR localization
Seems reasonable!
Just to note it here. This sounds similar to the need we had for Site Groups with a plugin supporting multi-lingual sitemaps. Nice to see another use case appear for those Site Groups.
+1
Also give Site Groups some sort of handle. That is also set on the {{ currentSite }} global for use in twig.
+1
I would love to see this functionality implemented.
+1
Exactly in that situation right now, multiple sites with multiple languages which need slightly changes across the sites aka site groups.
Looking forward to this, wondering if there's a clean work-around in the current setup.
There's a PR for this
Most helpful comment
+1
Also give Site Groups some sort of handle. That is also set on the
{{ currentSite }}global for use in twig.