Hi all,

I am seeking for advice here.

I have nice little symfony project with lots of features and therefor
a lot of routes.
One feature though is a small custom built CMS that allows its users
to do two things:

1. building a site structure that has no limits in terms of depth or
naming conventions.
this is stored as a nested set in the db, each entry has its own
unique path/URL.

2. writing small articles with their own URL part/filename/slug

just having articles with a slug field would be easy to match with a
route of course.
but I can not do something like:

myroute:
  url: /article/:slug
  ...

because unfortunately the /article/ part is dynamically. it could be

myroute:
  url: /sports/:slug
  ...

or

myroute:
  url: /politics/worldwide/:slug
  ...

or even

myroute:
  url: /service/products/enduser/motherboards/:slug
  ...

still all these fields have to be matched somehow.

I could do something along the lines of

myroute:
  url: /*/:slug
  ...

but how would I be able to distinguish two articles with the same slug
value but located under different paths?

what makes an article unique is not its slug but its slug AND location.



Any ideas? Best practices? Hints?



Cheers
/Christian

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to