# This file defines user-definable routes for the frontend of your Bolt website. # Check below for examples, or read the documentation at # https://docs.bolt.cm/configuration/routing # ------------------------------------------------------------------------------ # Place your own routes here, that have a HIGHER priority than the default routes. # ------------------------------------------------------------------------------ # These are the routes defining the default behaviour of Bolt's frontend. # Changing these might give unexpected results or even break your website. If # possible, only add NEW routes above or below these. homepage: path: / defaults: _controller: controller.frontend:homepage search: path: /search defaults: _controller: controller.frontend:search preview: path: /preview/{contenttypeslug} defaults: _controller: controller.frontend:preview requirements: contenttypeslug: controller.requirement:anyContentType methods: [POST] contentlink: path: /{contenttypeslug}/{slug} defaults: _controller: controller.frontend:record requirements: contenttypeslug: controller.requirement:anyContentType taxonomylink: path: /{taxonomytype}/{slug} defaults: _controller: controller.frontend:taxonomy requirements: taxonomytype: controller.requirement:anyTaxonomyType contentlisting: path: /{contenttypeslug} defaults: _controller: controller.frontend:listing requirements: contenttypeslug: controller.requirement:pluralContentTypes # ------------------------------------------------------------------------------ # Place your own routes here, that have a LOWER priority than the default routes. # ------------------------------------------------------------------------------ # Routes examples: # Example to route old '.html' pages to pages genereated by bolt. # oldpages: # path: /{slug}.html # defaults: # _controller: controller.frontend:record # contenttypeslug: page # requirements: # slug: '[a-z0-9-_]+' # Example route with a host requirement # example: # path: /example # defaults: # _controller: controller.frontend:record # contenttypeslug: page # slug: example # host: www.mydomain.org # Example override for a specific contenttype # pagebinding: # path: /{slug} # defaults: # _controller: controller.frontend:record # contenttypeslug: page # contenttype: pages # Example single record override # aboutbinding: # path: /about # defaults: # _controller: controller.frontend:record # contenttypeslug: page # slug: about # recordslug: page/about # Supported internal defaults are: # _controller the controller class::method to be called # _before the before to call, if non-existent the 'before()' of the controller will be called # _after the after to call, if non-existent the 'after()' of the controller will be called # # Both _before and _after support a shortcut notation which re-uses the controller class: '::before' # Example: rendering a "static" template from the current theme with no associated record/content. # Note that you can still load and render content from within the template. # templatebinding: # path: /static-page # defaults: # _controller: controller.frontend:template # template: static-page
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
.bolt.yml | File | 83 B | 0644 |
|
Notes.txt | File | 1.72 KB | 0644 |
|
changelog.txt | File | 3.13 KB | 0644 |
|
config.yml | File | 20.62 KB | 0644 |
|
contenttypes.yml | File | 11.93 KB | 0644 |
|
edit.php | File | 3.73 KB | 0644 |
|
edit.xml | File | 433 B | 0644 |
|
fileindex.php | File | 61 B | 0644 |
|
import.php | File | 4.13 KB | 0644 |
|
index.php | File | 297 B | 0644 |
|
info.xml | File | 2.2 KB | 0644 |
|
install.js | File | 924 B | 0644 |
|
install.php | File | 16.68 KB | 0644 |
|
install.xml | File | 1.44 KB | 0644 |
|
md5 | File | 4.61 KB | 0644 |
|
menu.yml | File | 672 B | 0644 |
|
permissions.yml | File | 8.32 KB | 0644 |
|
routing.yml | File | 3.42 KB | 0644 |
|
taxonomy.yml | File | 793 B | 0644 |
|