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?
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?
I think this is what you are looking for -http://legacy-documentation.concrete5.org/tutorials/global-areas-fo...
Hello!
I put this code to my website, but now i really don't know what to do next :)
I put this code to my website, but now i really don't know what to do next :)
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.
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
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
Oh, ok. Then you need to include the stack programmatically and specify it to use the stack from the default language always:
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.
<?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.
Yep!
That's what I was looking for!
Thank you very much!!
That's what I was looking for!
Thank you very much!!