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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to