Legacy Documentation
You are using the documentation for version 4.3.8. Go here for the latest version.
Template Routes¶
Control Panel Location:
The Template Route Manager shows all templates that are assigned a template route and allows you to add, edit and manage your Template Routes.
Routes are listed in the order that the Template Router will match your templates.
Permission Restrictions¶
- Access settings: Design & Content
- Template Management Allowed actions: Manage Template Settings
- Template Management Allowed actions: Create New Templates
- Template Management Allowed actions: Edit Templates
- Template Management Allowed actions: Delete Templates
- Template Management Allowed template groups
Actions¶
Settings¶
This will take you to Template Settings.
Export All¶
All templates, with their template groups, will be zipped and downloaded.
Search Templates¶
Searches template contents for the phrase.
Route¶
This route determines the URLs that will match your template. The format is as follows:
/segment/{variable}/{variable:rule}/{variable:rule0|rule1[arg]}
For more info see: Template Routes
Require all Segments?¶
If set to “yes” all segments defined in your Template Route must be contained in a URL in order for it to match.
If set to “no” and static variables are used in the route, all variables will still be required in order for the URL to match the route. For example, /add/{url_title:alpha_dash}
will not match the URL /add. It requires a third segment to match.
In order to use static variables and not require all variables, use a regular expression match in place of a static variable. In the example above, replace the static variable add
with a regular expression match. The resulting route would look like:
/{seg1:regex[(add)]}/{url_title:alpha_dash}
Create New¶
Creates a new row where you may add a new route, specifying the template, the route and whether segments are required.