How to display different languages with CMS pages in frontend?

Laraship QuestionsCategory: TechnicalHow to display different languages with CMS pages in frontend?
martin asked 5 years ago

As a test I created a page with three different languages:

https://ecommerce2.laraship.com/langtest

containing: langtest en, langtest br and langtest en

If change the language with:

https://ecommerce2.laraship.com/set-locale/pt-br

only the english language is ever displayed.

How to enable different languages for the frontend pages?

Thanks

2 Answers
Best Answer
laraship Staff answered 5 years ago

Hello,

I see your point, this is related to getRendereContent function at content.php

a simple fix will be at Corals/modules/CMS/Models/Content.php

Replace line 88

$content = $this->attributes['content'];

with

$content = $this->getAttributeValue('content');

will push the fix to our update server in few mins :)

Thanks fo pointing that

laraship Staff answered 5 years ago

Hello,

this issue was dude to CKEDITOR was not supporting Localization however this should be working fine now, and it has been added in the new released

and you can check the demos again.

Best,

Laraship Support