Routing pagebinding

A forum for Bolt related questions / issues

Routing pagebinding

Postby Dorien » Fri Sep 19, 2014 12:43 pm

Hi!

I've added something in my routing.yml so i won't get /page/pagename. But i thought that would only affect the contenttype 'page'.

Code: Select all
pagebinding:
  path:               /{slug}
  defaults:           { _controller: 'Bolt\Controllers\Frontend::record', 'contenttypeslug': 'page' }
  contenttype:        pages


When i try to go to /dossiers (another contenttype) then i don't get the listing page anymore. When i remove that pagebinding part from my routing it works again. I find this strange since that piece of routing should only affect the contenttype pages.

~ Dorien
Dorien
 
Posts: 21
Joined: Mon Nov 11, 2013 3:34 pm

Return to Bolt Discussion

Who is online

Users browsing this forum: Google Feedfetcher and 1 guest

cron