One stack for many languages

Permalink
Hello!
I'm wondering how to set one global stack for different languages using internationalisation. I have concrete5.7
I have 4 languages (polish, english, spanish and swedish)
In every languages I have a subpage (Offer) and I would like to create one stock for all those languages.
Can you give me an advise?

View Replies: View Best Answer
hutman replied on at Permalink Reply
hutman
tzmudzinski replied on at Permalink Reply
Hello!
I put this code to my website, but now i really don't know what to do next :)
Mainio replied on at Permalink Reply
Mainio
If you're using a recent version of 5.7, the stacks should already be multilingual by default. No need to do any core modifications.
tzmudzinski replied on at Permalink Reply
Yes,
but I need one stack which i could place in any language.
I need to edit conctent of this stack in one place for all languages
Mainio replied on at Permalink Best Answer Reply
Mainio
Oh, ok. Then you need to include the stack programmatically and specify it to use the stack from the default language always:

<?php
    $st = Stack::getByName('Test stack', 'RECENT', Stack::MULTILINGUAL_CONTENT_SOURCE_DEFAULT);
    $st->display();
?>


Unfortunately there is no way of including the stack like this through the UI (as far as I know), this can be only done with this snippet.
tzmudzinski replied on at Permalink Reply
Yep!
That's what I was looking for!
Thank you very much!!