I have been trying to build a filter fuctionality for blog posts. I would want to filter by taxonomy terms and by the year the post was published. So basically in the content I want to list all blog posts – on sidebar I would have all used taxonomy terms listed and also a list of all years/months when post have been published.
Additionally I want the filter to be reflected by the URL structure:
-
For a URL like
domain.com/blog/2014
all posts from 2014 would be listed. -
For a URL like
domain.com/blog/cars
only posts tagged with ‘car’ would be listed.
Is there a module to do this – or should this be done with views? I have been trying to do this with views now but with not much luck. Especially with the url I don’t understand how i can do that. Or if there is some tutorials on somewhere – that would help also.