Unable to map channel to template

I am attempting to make a content hub following the instructions here:

Everything is working except for mapping the channel to a template.

I created a folder in my template called properties and I put in a properties.hbs file into that folder. I edited my routes.yaml file as shown below. but it is the post template that loads.

routes:
  /properties/:
    controller: channel
    filter: tag:properties
    template: properties

collections:
  /:
    permalink: /{slug}/
    filter: tag:-properties
    template:
      - index
  /properties/:
    permalink: /properties/{slug}/
    filter: tag:properties
    template: properties/property
taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

After much fiddling, I figured out that I was not understanding the concept clearly. The template attribute in the routes.yaml file refers to the “properties” (in my case) landing page - a tag page. I was thinking it linked to a post template. I am figuring it out.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.