I don't think that's possible. symfony cannot know which module the slug belongs to when there is no difference between the slugs except the slug itself. But maybe there is a solution that I don’t know, I am quite new to symfony. Maybe it is possible to find out, which class belongs to the slug and then redirect to the related module. But then it would not be possible to have identical slugs for different Objects, for example your project "internet" and your category "internet".
Regards, Sven -----Ursprüngliche Nachricht----- Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Im Auftrag von Tobias Sjösten Gesendet: Montag, 11. Oktober 2010 21:06 An: symfony users Betreff: [symfony-users] Re: Routing with fallthrough Thanks for your answer! But I'm afraid I might have been unclear. For categories I have for example 'symfony', 'php, 'internet', etc. And for these I'd want to offer URLs like /symfony, /php, /internet, etc. Then I also have projects like 'sfSomethingPlugin' and 'sfSomeOtherThingPlugin', which I want to offer at /sfsomethingplugin and /sfsomeotherthingplugin. Is there any way to solve that problem? Cheers, Tobias On Oct 10, 11:31 am, "Sven Riecker" <i...@sven-riecker.de> wrote: > Hi! > > Maybe you could make a route like /:module with default execute method, e. > g. index. Then you could have your category module with the index method > where you list the articles of this category. And your "projects" module's > index method lists your projects. > > Then you only have to create the /:catslug/:articleslug route. > > -----Ursprüngliche Nachricht----- > Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] > Im Auftrag von Tobias Sjösten > Gesendet: Samstag, 9. Oktober 2010 23:09 > An: symfony users > Betreff: [symfony-users] Routing with fallthrough > > I'm building a blog kind of site and for my posts I want the URL > syntax "/<category>/<title-of-the-post>" and the categories should be > reachable at "/<category>". These are served through my 'article' and > 'category' modules. > > Now say I want to add something like a projects gallery, where I show > my various projects at "/<project-name>". Obviously I want to serve > them from a 'project' module. How would I do that? > > The problem I'm running into is that a matching route halts the route > parsing. But maybe there's a way to return, from a custom routing > class, into the routing.yml parser? > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en > > Eingehende eMail ist virenfrei. > Von AVG überprüft -www.avg.de > Version: 9.0.862 / Virendatenbank: 271.1.1/3187 - Ausgabedatum: 10/09/10 > 20:34:00 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en Eingehende eMail ist virenfrei. Von AVG überprüft - www.avg.de Version: 9.0.862 / Virendatenbank: 271.1.1/3191 - Ausgabedatum: 10/12/10 08:34:00 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en