Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

[MenuExtension] Embedded multilang menus #106

Open
dantleech opened this issue Jul 29, 2013 · 2 comments
Open

[MenuExtension] Embedded multilang menus #106

dantleech opened this issue Jul 29, 2013 · 2 comments

Comments

@dantleech
Copy link
Member

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: symfony-cmf/core-bundle#81

@dbu
Copy link
Member

dbu commented Nov 15, 2013

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
Copy link
Member

dbu commented May 8, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants