Skins

How do I display "You are currently viewing items for ..." for a category?

Scenario:
"I'd like to display the name of the category a user is viewing when they select an item from the category list. For example, using the default skin, there's links for each category item. The user clicks the "General" link and gets to see all the items in "General" but there's no header or title on the page that says this is a page that contains "Category: General". I would like to have something similar to the "You are currently viewing archive for ..." in the archive pages."

Solution:
Category pages are displayed using the Main Index skin part, so all you need to do is insert something before the <%blog%> part like this:

<!-- page content -->
<div id="container">
<%if(category)%>
<div class="content">
<div class="contenttitle">
<h2>Category: <%category(name)%></h2>

</div>
You are currently viewing items for <%category(name)%>
</div>
<%endif%>
<div class="content">
<%blog(default/index)%>
</div>
</div>
section: Skins | submitted by Leng on 2006.Feb.04 | 2390 views

item rate
Total votes: 6 - Rating: 5.17

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10