Displaying a list of posts by category #48
-
I have several categories:
This page knowledge-base.htm
1. When i going by links, example /support/kb/cateogry-2 - page not found. Also i have blog page kb.htm
And when i go to article page /support/kb/my-test-article all ok. Also i have page with post list code list-articles.htm
I want to make a filter so that when I go through a category, I get a list of content that relates to it, after which I can click on the more details button and read the content. Essentially, I need to get the basic functionality of displaying content by category. Please help. I was able to make a list of articles and when I clicked for more details, display the article itself. I can’t navigate from categories and filter by them. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
And {% component 'blogCategories' %} list all categories, how except 1 category, because this component use for news too.
I want to except from showing list on page {% component 'blogCategories' %} |
Beta Was this translation helpful? Give feedback.
-
Your URLs are competing with each other. Change them to the following: list-category-articles.htm url = "/support/kb/category/:slug/:page?" single-article.htm url = "/support/kb/article/:slug" list-articles.htm url = "/support/kb/articles |
Beta Was this translation helpful? Give feedback.
Your URLs are competing with each other. Change them to the following:
list-category-articles.htm
single-article.htm
list-articles.htm