Blog-plugin: I can't make sort by category, whats wrong?(

Created on 14 Feb 2016  路  4Comments  路  Source: rainlab/blog-plugin

BlogPosts
BlogCategory

Link with category (blog/category/hello), but displaying all categories
Blog on page

Most helpful comment

I may be mistaken but look at the "Category filter" property in Post List component settings. Specifically, note the ">_" symbol's position. It's on the right. As I understand this symbol, if you want to type in url parameter, you have to have ">_" on the left as you do for "Page number" property. Just click on this symbol so it will appear on the left, then retype ":slug" as the value. Should be working.

All 4 comments

I may be mistaken but look at the "Category filter" property in Post List component settings. Specifically, note the ">_" symbol's position. It's on the right. As I understand this symbol, if you want to type in url parameter, you have to have ">_" on the left as you do for "Page number" property. Just click on this symbol so it will appear on the left, then retype ":slug" as the value. Should be working.

Thanks!!!! It Works :+1:

i had a problem with categories because i tried to put a Post List in a partial inside a page, the problem result to be that, just you have to define te post list on the page, and copy the {% component 'blogPosts' %} into the partial.

Thanks @graker! Now it works fine!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dnlnrs picture dnlnrs  路  3Comments

drmzio picture drmzio  路  7Comments

mateoprifti picture mateoprifti  路  3Comments

petehalverson picture petehalverson  路  3Comments

rodrigogoncalves picture rodrigogoncalves  路  9Comments