Open ciro-webcom opened 7 years ago
@ciro-webcom I have similar problem, can you tell us how did you resolve the problem?
Hi, I don't remember well, but I think the best way is to fork the repo and add a column locale on articles and categories tables, and change the queries in the repositories including the locale parameter. I also didin't use the original templates, so I didn't had to change the twig files
@ciro-webcom thanks !
Hi,
First of all, I want to thank you for your work, this bundle saves me a lot of work. Can you tell me what is the best way to use the bundle for a multilangage blog? I wanted to put a property $locale in articles, categories and tags entities but if I do that, I have to change repositories. For example ArticleRepository functions to get articles collection in a given language, and a lot of other things in templates, such as the sortableTh macro, in wich I have to put the locale parameter for the given route and all the routes parameters for list and create action, because the controller needs to know the locale.
What is the best way to do what I want?
Thank you