plugin version 1.2.9
It seems that doesn't work category filter in the Post list component.
I used demo video as example. I created pages for blog, category and post entities.
news-tag slug./blog/category/:slug:slugProblems:
/blog/category/news-tag) display all posts instead displaying only "news-tag" posts.Post list component on it. The same result when I set "Category filter" parameter to /blog/category/news-tag.What do I do wrong?
P.S. When I use xdebug to change value of variable categoryId from :slug to news-tag in the /plugins/rainlab/blog/components/Posts.php, method loadCategory() everything works correctly.
Hi
Check out your post list component settings. The ">_" symbol should be on the left of ":slug", if it is on the right, click on it. When it's on the right - it's treated as a plain string value, when it's on the left - it is a parameter.
Or, if you are changing your settings in code, check out component settings section and make sure there is categoryFilter = "{{ :slug }}" instead of categoryFilter = ":slug" (for the same reason as above).
You are right.
Everything works. Thank you.
Most helpful comment
You are right.
Everything works. Thank you.