sulu-standard
sulu-standard copied to clipboard
Language fallback / shadow pages (auto & manual)
Implementing Shadow Pages WEBSITE
- Implement shadow fallbacks on the website frontend.
Language fallback
For language fallback we need to implement the language fallback.
<localizations>
<localization language="es">
<localization language="en" shadow="auto">
<localization language="en" country="us" shadow="auto"/>
</localization>
<localization language="fr">
<localization language="de" country="at" shadow="auto"/>
</localization>
</localization>
</localizations>
So above requests for a page in de-at
should always fallback to es
.
Implementing Shadow Pages ADMIN
Manual
- Allow user to manually create "shadow" page
Automatic
- When there is a shadow defined in the portal.xml (
<localizations/>
) and a node is created, then the corresponding shadow content should be made available.
Manual is done for 0.6. See https://github.com/sulu-cmf/sulu/pull/190 & https://github.com/sulu-cmf/SuluContentBundle/pull/193
Automatic is planed for 0.7 /cc @wachterjohannes @dantleech
@chirimoya did Shadow pages fix this issue?
Automatic shadow generation is not finished yet, I guess. /cc @wachterjohannes
no automatic is not implemented!
Just to be sure. Automatic shadow generation is still not implemented?
Because the xsd still allows auto="shadow" but i do not get any shadow pages that way.
@simpliste no there is no progress on that