symfony-cmf / content-bundle

Provides some basic document classes and controllers for modeling content
https://cmf.symfony.com
19 stars 32 forks source link

Embedded multilang menu #31

Closed wjzijderveld closed 11 years ago

wjzijderveld commented 11 years ago

The embedded route and menu forms for the content admin are great!

But for multilang menu nodes, it doesn't work to well. It only shows one node, even though I have already a menunode in 3 locales (with fixtures in this case).

I'll try to look into it myself if I find the time, but wanted to have a reference over here.

dbu commented 11 years ago

at the moment its the same as with the main content: you see the menu and the main content in the current locale. you have to add a language switcher to your sonata admin and go to the admin in the right locale to edit the translation. see also http://symfony.com/doc/master/cmf/tutorials/handling-multilang-documents.html#sonata-phpcr-odm-admin

this is not the perfect solution yet, as the interface language changes as well, and you don't see what languages exist. and if you have more then 4-5 languages it will become rather unwieldy with the language switcher. ideally we would have some sort of language tabs or something, but this will be a rather dramatic change for sonata unless we do a page reload on language switching.

wjzijderveld commented 11 years ago

Sounds logical, didn't check that yet. Did try to save it when selecting another locale in the dropdown shown in the form, but that didn't work yet. If I find the time, I might look into multilang forms, I like to check if there is a 'simple' generic way to do this. Before I start working on things, I probably put it on the mailinglist first, to debate some options.

dbu commented 11 years ago

i think the locale dropdown had some problem, yes. in our project we decided to just not show it anymore as it is confusing for the user.

yeah lets discuss on the mailinglist how that should be done.

kingcrunch commented 11 years ago

:thumbsup:

dbu commented 11 years ago

should we just in this case always use the current locale? or the selected locale of the content?

dantleech commented 11 years ago

Moved this issue to https://github.com/symfony-cmf/MenuBundle/issues/106