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

[sonata] Cannot associate menu node with route document #46

Open
dantleech opened this issue Apr 18, 2013 · 8 comments
Open

[sonata] Cannot associate menu node with route document #46

dantleech opened this issue Apr 18, 2013 · 8 comments
Labels

Comments

@dantleech
Copy link
Member

Currently you can only specify a URL, Route Name, or Content Document (or rather all three at the same time if you like - would be neat to have a radio selector there, but thats another issue) and you cannot select a document from the route subtree.

@dbu
Copy link
Member

dbu commented May 13, 2013

is this just a sonata issue or also a model issue? anyways, having a reference to a route instead a content should not be too hard. with DynamicRouter we don't care, it can create the route from content or a route object.

anyways, don't think its critical but it should be easy to do.

@dantleech
Copy link
Member Author

Its just a missing feature in Sonata Admin. Referencing the Route in the model works OK.

@sjopet
Copy link
Member

sjopet commented Jun 21, 2013

we need to find a way to to select either a content document or a route document from the same form component.
Treebrowser or selectbox are possible options.

@dbu
Copy link
Member

dbu commented Jul 5, 2013

is this not just a question of setting a different base path for the selection widget? do we need an additional config option to allow to overwrite this? i think most of the time it makes more sense to select the content than the route document. for multilang, the route generator is going via the content anyways to find all route alternatives and pick the one with the matching locale if possible

@dbu
Copy link
Member

dbu commented Jul 29, 2013

ping

@lsmith77
Copy link
Member

lsmith77 commented Aug 9, 2013

ping once more

@sjopet
Copy link
Member

sjopet commented Aug 9, 2013

I'll have a look at this while working on the sonata bundle form types

@kminh
Copy link

kminh commented Jan 2, 2015

Would like to have this as well, since not all menu items link to an actual content document (it can be an internal redirect route for tracking purpose for example).

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

No branches or pull requests

5 participants