A
A
a35b622019-10-21 01:51:58
Yii
a35b62, 2019-10-21 01:51:58

How to implement post creation in multilingual yii2?

I read a lot about a multilingual site on yii2 - everything seems to be clear.
Create the post and post_lang tables
The post stores the id and the most general information, and the post_lang stores the link to the post, language and all the information in the required language. At the same time, everything opens perfectly for the user, but the admin needs to create an extra record, and then attach a post to it in any language, which is somewhat inconvenient.
How can you implement the creation of multilingual posts without creating a separate id, like creating posts in multilingual wordpress?
In order to open the same article in another language when changing the language and make friends with SEO in terms of CNC ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2019-10-21
@a35b62

In short, to the point and quickly, then here is a ready-made extension on github .
Also, the well-known Dmitry Eliseev has an article on this topic . True, it is for the first version, but the essence does not change.
I think that this material will be enough).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question