Hello together,
it is me again
I’m having like around 4 neos Site Packages that should be independed. But it seems like i’ve made a mistake, or probably something is not configured good enough.
My case right now:
Within my project, i’ve started to develop with a default language (english). I’ve created each node and filled it up with some content etc. Now i want to add a second language and even more: I want to make the second language as default language (polish).
For this i’ve changed my Settings.Language.yaml from:
Neos:
Neos:
userInterface:
# Spot untranslated labels in the backend
#scrambleTranslatedLabels: true
defaultLanguage: 'en_US'
translation:
autoInclude:
'Vendor.Neos': ['NodeTypes/*']
Flow:
i18n:
defaultLocale: 'en_US'
fallbackRule:
order: ['en_US', 'pl']
ContentRepository:
contentDimensions:
language:
label: 'Language'
icon: 'icon-language'
# The default dimension that is applied when creating nodes without specifying a dimension
# Crucially important are the default and defaultPreset keys: They define what language you get when visiting the root of the website; and when logging into the backend. So the default (2) must reference the value en_US, while the defaultPreset (3) must reference the preset en.
default: 'en_US'
# The default preset to use if no URI segment was given when resolving languages in the router
defaultPreset: 'en'
presets:
en_US:
label: 'English (US)'
values:
- en_US
uriSegment: ''
pl:
label: 'Polish (PL)'
values:
- pl
uriSegment: 'pl'
To:
Neos:
Neos:
userInterface:
# Spot untranslated labels in the backend
#scrambleTranslatedLabels: true
defaultLanguage: 'pl'
translation:
autoInclude:
'Vendor.Neos': ['NodeTypes/*']
Flow:
i18n:
defaultLocale: 'pl'
fallbackRule:
order: ['pl', 'en_US']
ContentRepository:
contentDimensions:
language:
label: 'Language'
icon: 'icon-language'
# The default dimension that is applied when creating nodes without specifying a dimension
# Crucially important are the default and defaultPreset keys: They define what language you get when visiting the root of the website; and when logging into the backend. So the default (2) must reference the value en_US, while the defaultPreset (3) must reference the preset en.
default: 'pl'
# The default preset to use if no URI segment was given when resolving languages in the router
defaultPreset: 'pl'
presets:
pl:
label: 'Polish (PL)'
values:
- pl
uriSegment: 'pl'
en_US:
label: 'English (US)'
values:
- en_US
uriSegment: 'en'
By running ./flow node:migrate 20150716212459
everything worked as expected. But by only having those two languages, i thought i will also only see those two languages in the backend. It seems like i also see the languages from all the other site packages:
The other languages are configured in all the other site packages. As well as in the Neos.Demo. By adding languges to those files as e.g. in Neos.Demo: Settings.CR.yaml it will appear in the backend.
I’m having that issue also with some other Page Nodes. E.g. i can add the Landing Page from the Neos.Demo into my newly added Project.
I found a solution by adding the following to my NodeTypes.yaml
'Neos.Demo:Document.LandingPage':
abstract: true
But this does not just makes it unable to add, also it deletes all elements of this element in the Neos.Demo Project.
Is there a general mistake i’ve did? Basicially i just want to have a multi domain setup in Neos (Which is working fine) but also the Site Packages should be isolated from each other.
Thanks a lot for reading!