Hello
Here are a static dummy page I’m working on: http://cigar2.se/nyheter.html
(it is easier for me to explain my question referring to that page)
This is a News page, where each news article is assign to a category. Bellow the view area, for a selected article, is a list with a title and a excerpt. Now, I want to filter that list to show just articles belonging to a category, by clicking on one of the blue links (for example “Matchreferat”).
I would prefer to “reload” the same page, but only show news articles from selected category. Is this possible?
To show the article list I have this code:
{exp:channel:entries
channel="news"
dynamic="no"
status="open"
limit="5"
paginate="bottom"
}
<dl>
<dt><a href="http://{title_permalink=news}">{title}</a></dt>
<dd>{news_excerpt}</dd>
</dl>
{paginate}
Sida {current_page} av {total_pages} sidor {pagination_links}
{/paginate}
{/exp:channel:entries}And I have tried to filter by category with this code:
{exp:channel:categories channel="news" style="nested" class="kategori"}
<a href="http://{path=news}">{category_name}</a>
{/exp:channel:categories}This is not working the way I want to: the article list shows all categories all the time - no matter which category link I select.
Is there a solution?
Best regards, Magnus