gergo85/oc-news

Show caregory posts

Closed this issue · 2 comments

Hi .
Im created a page with " category.htm" name in cms pages to display categories and list of posts there .
and add url = "/category/:slug?/:page?" to the head of this page .
After that i add related components to this page like " categories and show posts " .
I 've been showing all the things I wanted right now. ‌But the problem is that I want to click on every category, just show me the posts inside that category. But now all posts are represented in one place .
In fact :slug? nothing plays a role in filtering the news for that.

Hi again .
After all my efforts, I finally found my answer. i forgot to choose category filter in component options .
we must write this : :slug in categoryFilter field . In other words , in code view it will like this : categoryFilter = "{{ :slug }}"
It will filter post by slugs in category page .

Hi,
Is it alright?