Add site group name in path for Translated content blocks

Hello,

I saw the new 4.4 feature about translated content blocks, it’s a good idea.

However, when you have a multisite installation with different site groups and different languages for each, you have something like this :

  • Cats
    • fr
    • en
  • Dogs
    • fr
    • en

That is perfectly correct and inline with how October works. However, by giving the same “fr” and “en” to each websites, it will put some conflict in the content filenames.

That’s why I think that adding the site group as a prefix would be a good solution to keep things organized with multisite.

Something like that in the example :

/cats/fr/myfolder/content.htm
/cats/en/myfolder/content.htm
/dogs/fr/myfolder/content.htm
/dogs/en/myfolder/content.htm

etc…

Best regards

1 Like

Hi @PubliAlex

The translated content blocks are for translation within the theme. For multisite., consider using child themes to show different content:

It should look something like this. With a parent theme for the shared assets and templates:

/themes/cats/content/fr/myfolder/content.htm
/themes/cats/content/en/myfolder/content.htm
/themes/dogs/content/fr/myfolder/content.htm
/themes/dogs/content/en/myfolder/content.htm