Hi livenomadic
Regarding your wish to show the following:
a) Category Title
b) List of Subcategories of that category
c) List of Entries in this (current) category
Use a category that is passed to the template through the url and then place these tags in your template:
a) Use
{exp:weblog:category_heading}
{category_name}
{/exp:weblog:category_heading}
b) Use
{exp:subcategories ...}
{category_name}
{/exp:subcategories}
c) Use
{exp:weblog:entries ...}
{title}
{/exp:weblog:entries}
Also… How are your categories structured? With subcategories such as:
Topics
—-Regions
———Africa
————-Zimbabwe
————-Nigeria
———Europe
————-France
————-Germany
...or are they all on the same level?
(BTW… regarding your HTML code around the {exp:subcategories tag}. It would make more sense to use the “unordered list” tag <ul> in conjunction with <li> list items tag.>)
And…Here’s one example of how I use the plugin:
<style type="text/css">
<!--
.hide {
display: none;
}
.subcategories {
clear: both;
margin: 0;
padding: 15px 0 0 0;
width: 728px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
img {
border: none;
}
.subcategories h2 {
margin: 0;
padding: 3px 0 0 0;
font-size: 12px;
font-weight: bold;
color: #333;
/*border-top: 1px dashed #807cab;*/
background-image: url(/images/de-layout-basics-2/muster_2.png);
background-position: top;
background-repeat: repeat-x;
}
.subcategories ul {
float: left;
width: 728px;
margin: 0;
padding: 10px 0 0 0;
list-style-type: none;
}
.subcategories ul li {
float: left;
width: 182px;
margin: 0;
padding: 0;
line-height: 1.618em;
font-size: 10px;
}
.subcategories li a {
color: #0033cc;
}
-->
</style>
<div class="subcategories">
<h2>Kategorien</h2>
<ul>
{exp:subcategories sort_by="category_name" count_entries_from_weblogs="22" count_entries_with_status="open|closed"}
<li><a href="{template_path=templategroup/template}">{category_name} {if entries_count > 0}({entries_count}){/if}</a></li>
{/exp:subcategories}
</ul>
</div>