Category Archive Tag improvements
Posted: 04 March 2008 01:13 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  574
Joined  08-31-2005

I discovered some odd behavior in the {exp:weblog:category_archive} tag. It ignores all html code that is not within a {categories} or {entry_titles}, even though it is within the
{exp:weblog:category_archive} tag. The weblog tag doesn’t function like this. So I don’t see why the category archive tag should. It limits your options on layout structure (without having to do a bunch of php). It would be nice if it could handle something like this:

{exp:weblog:category_archive weblog="blog" style="linear"}
<div id="container">{categories}
<div class="heading">{category_name}</div>{/categories}
<div class="links">
{entry_titles}
<a href="{path={my_template_group}}">{title}</a><br />
{/entry_titles}
</div>
</
div>
{/exp:weblog:category_archive}

As it is now <div id=“container”> and the 2 closing divs don’t get output at all. What I would expect (and want) to happen is <div id=“container”> gets output, then the category name, then <div class=“links”>, then it loops through all the entries, then the closing divs.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 39
Total Topics: 82226 Total Anonymous Users: 18
Total Replies: 441924 Total Guests: 215
Total Posts: 524150    
Members ( View Memberlist )