menu-bundle icon indicating copy to clipboard operation
menu-bundle copied to clipboard

[MenuExtension] Embedded multilang menus

Open dantleech opened this issue 12 years ago • 2 comments

Originally reported by @wjzijderveld in ContentBundle

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.

This is now a problem for MenuBundle as the admin logic has moved into the Extension.

Global issue: https://github.com/symfony-cmf/CoreBundle/issues/81

dantleech avatar Jul 29 '13 08:07 dantleech

i guess the problem is that admin extensions are not applied to admin extensions. so we would need to add the locale to this admin again.

what we do in our project is simply to inherit the locale of the content to the locale of the menu items in the sonata preUpdate and prePersist methods. but for this, the admin has to be aware of what it is embedding...

(actually we do not even use the locale dropdown at all but rather use the request locale, as we found this is less confusing for our editors.)

dbu avatar Nov 15 '13 14:11 dbu

the approach with using a form for admin extension is working nicely in the seo bundle. however, i did not manage to use the form to edit the document itself so we maybe gain nothing with this.

dbu avatar May 08 '14 15:05 dbu