Hey Dennis,

thanks for confirming. I thought about "uncategorized" as well, but I
don't know what the ratio of categorized vs. categorized items will be
(system is for a client), so I don't want users to have to type
uncategorized into every url...
I ended up using 2 routes for now.

Thanks again,
Daniel


On Aug 25, 10:51 pm, Dennis Benkert <spinecras...@googlemail.com>
wrote:
> Hi Daniel,
>
> afaik you can't do this using one route. But without knowing more about
> your project, how about using a category called 'uncategorized' which
> will be the default one if non is chosen? This way you can use one route
> and urls would be like
>
>   /library/legal/document2.pdf
>
> and if no category was chosen
>
>   /library/uncategorized/document.pdf
>
> - Dennis
>
> Richtermeister wrote:
> > Hi all,
>
> > quick question. I'm trying to accommodate a url with an optional
> > category.
>
> > Say you have documents that can be categorized, like: "/library/legal/
> > document1.pdf", where "legal" is a category.
>
> > Now, for uncategorized documents, I would like those to omit the
> > category parameter, like so:
>
> > "/library/document2.pdf"
>
> > is this possible with one routing class definition? Looking to do with
> > with a propel route.
>
> > Thanks, and have a great day.
> > Daniel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to