Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show caregory posts #72

Closed
ajmanco opened this issue Sep 17, 2018 · 2 comments
Closed

Show caregory posts #72

ajmanco opened this issue Sep 17, 2018 · 2 comments

Comments

@ajmanco
Copy link

ajmanco commented Sep 17, 2018

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.

@ajmanco
Copy link
Author

ajmanco commented Sep 17, 2018

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 .

@gergo85
Copy link
Owner

gergo85 commented Sep 19, 2018

Hi,
Is it alright?

@gergo85 gergo85 closed this as completed Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants