Closed awdng closed 10 years ago
The specified path provider is an absolute path, it is not relative to the routing base path. I had a PR open for 11 months for a path provider which supplied the "CMF" route base path, but I closed it because it had become stale.
But in a nutshell it would be something like:
cmf_routing_auto:
mappings:
Kuoni\BackendBundle\Document\Page:
content_path:
# corresponds first path unit in diagram: my-forum
route_root:
provider: [cmf_route_path]
exists_action: use
not_exists_action: create
locale:
provider: [ locale ]
...
yeah that fixed it, thanks alot. I swear the documentation didn't mention it yesterday but now it does, guess you updated ;) Nice work, thx alot
I have setup AutoRouting Bundle according to: http://symfony.com/doc/master/cmf/cookbook/creating_a_cms/auto-routing.html
but routes don't get created in '/cms/routes' but in the root, while content gets created correctly.
I feel this could have something todo with this issue i created for the DoctrinePhpCrBundle https://github.com/doctrine/DoctrinePHPCRBundle/issues/119 (something related to the GenericInitializer class which gets the basepath as an argument)
Package Versions