I’ve never had an occasion to use the Category Archive tag before and have two quick questions on it. I have a page where I want to show all the channel entries for a particular channel organized by category. So I’m using this tag:
{exp:channel:category_archive channel="projects" style="linear" disable="category_fields" orderby="title" sort="asc"}
{categories}<h2>{category_name}</h2><p>{/categories}<br />
<ul><br />
{entry_titles}<br />
<li><a href="http://{path=">{title}</a></li><br />
{/entry_titles}<br />
</ul><br />
{/exp:channel:category_archive}However, I also want to give users the option of only seeing a single category using the same template if they click on a category link. So if they visit http://www.site.com/projects they get all channel entry organized by the category archive tag, but if they visit http://www.site.com/projects/category/category_one the category archive tag would only show them the entries from category_one. This doesn’t seem to work though. Does the category archive tag not filter entries dynamically by the url like the channel entries tag does? I know that I could point the category link to a separate template and use the channel entries tag there to filter the results by category, but I was looking for a more efficient way.
Also, when I use the code above, it does not output the the <ul> and </ul> tags. Does the category archive tag ignore anything outside of the {categories} and {entry_titles} tag pairs?
I’m running EE 2.5.
Thanks for your help!