categoryFilter returns a string

When I wanted to implement the category feature on WinterCMS, the categoryFilter field in the PostList component was not working so I could not see all my posts with a filter.

Just change the categoryFilter element in your category page category-page.htm like this:

<!-- before -->
[blogPosts]
categoryFilter = ':slug'" 

<!-- after -->
[blogPosts]
categoryFilter = "{{ :slug }}"

For more information: https://github.com/rainlab/blog-plugin/issues/469



in WinterCMS Posted on May 17, 2021