What the URL should look like:
category\name\content
category-name\content
other\category\name\content
And the navigation bar would be:
Category < Name < Content
Category Name < Content
Other < Category < Name < Content
The documentation doesn't seem to cover this. So how do I get the URL routing to behave the way I want it to?
I tried something like this, but it didn't work:
Code: Select all
acme_demo_index:
path: /custom
defaults: { _controller: acme.demo.controller:handle }
acme_demo_viewcategory:
path: /custom/{categories}
defaults: { _controller: acme.demo.controller:handle }
acme_demo_viewcontent:
path: /custom/{categories}/{name}
defaults: { _controller: acme.demo.controller:handle }