sulu-standard icon indicating copy to clipboard operation
sulu-standard copied to clipboard

Language fallback / shadow pages (auto & manual)

Open chirimoya opened this issue 10 years ago • 6 comments

Implementing Shadow Pages WEBSITE

  1. 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

  1. Allow user to manually create "shadow" page

Automatic

  1. 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.

chirimoya avatar Jul 29 '14 09:07 chirimoya

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 avatar Aug 13 '14 12:08 chirimoya

@chirimoya did Shadow pages fix this issue?

dantleech avatar Oct 02 '14 14:10 dantleech

Automatic shadow generation is not finished yet, I guess. /cc @wachterjohannes

chirimoya avatar Oct 02 '14 14:10 chirimoya

no automatic is not implemented!

wachterjohannes avatar Oct 02 '14 18:10 wachterjohannes

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 avatar Jul 13 '18 12:07 simpliste

@simpliste no there is no progress on that

wachterjohannes avatar Aug 06 '18 08:08 wachterjohannes