Setting up Resolvers
This page documents the resolvers included with Themes. These resolvers assume that you are using the template names included by default and that URL patterns match the standard ones that you must configure in URL Service. See How to set up canonical URL service for Themes for more information.
Each of these is configured to work for all sites.
NAME | PATTERN | PRIORITY | DEFAULT TEMPLATE | CONTENT SOURCE | CONTENT SOURCE CONFIGS |
---|---|---|---|---|---|
Video | ^(/video/[\w-/]+?/)?$ | 5 | video | content-api | website_url Pattern 1 |
Preview unpublished stories | ^/composer-preview/(.*)/ | 5 | article-right-rail | content-api-unpublished | _id Pattern 1 |
Tags | ^/tags/([\w-]+?)/?$ | 6 | tags | tags-api | Slug Pattern 1 |
Author | ^/author/([\w-]+?)/?$ | 6 | author | author-api | Slug Pattern 1 |
Gallery | ^(/gallery/[\w-/]+?/)?$ | 8 | gallery | content-api | website_url Pattern 1 |
Article | (./[0-9]{4}/[0-9]{2}/[0-9]{2}/.) | 10 | article | content-api | website_url Pattern 1 |
Section | ^(.*)/ or ^(\/[\w\-]*\/?[\w\-]*\/?[\w\-]*\/?[\w\-]*\/?[\w\-]*)\/.* | 50 | section | site-service-hierarchy | hierarchy Static default sectionId Pattern 1 |