Version 1.6.9
Build: 20100430
I’m having an issue getting the category archive pages to display properly for a weblog that I’m using like a typical blog.
The main blog landing page is here: http://www.aerometric.com/insight/
“Insight” is the weblog name. In global channel preferences, I’ve set “topic” to be the category url indicator.
The category archive links are in the gray column on the left. If you click on “lidar” or “aerial photography”, the category archive page displays properly. But for “whitepapers” and “presentations”, it will actually crash your browser trying to load them. Unfortunately, it doesn’t give me any kind of error message.
I’ve tested different category names, and if there are other pages on the site (static pages in other weblogs), then the category archive page works. It’s when the category name is not also being used elsewhere that the archive pages don’t display.
I’m using one template for both the main landing page & the category archives… insight/index. When I exp:weblog:entries tag contained dynamic=off, the main landing page displayed fine, but the categories were not filtering. When I removed dynamic=off, the category archives filtered properly, but no entries were displayed on the main landing page anymore.
So currently, I’m using an if statement, checking for “topic” in segment_2, and using one exp:weblog:entries tag for category archives, and another one for the main landing page. The only difference in the two is the dynamic=off parameter.
Bottom line: I just want ALL the category archive pages displaying correctly. Here’s my code from the insight/index template:
{if segment_2 == ""}
{exp:weblog:entries weblog="insight" limit="8" show_future_entries="yes" orderby="date" disable="trackbacks" dynamic="off"}
<div class="project">
<a href="http://{title_permalink=insight/post}">_ {exp:imgsizer:size just_url="yes" src="{insight_author_thumb}" width="90" height="90" quality="70"}_ {sized}_ {/exp:imgsizer:size}_ </a>
<h2><a href="http://{title_permalink=insight/post}">{title}</a></h2>
<p> </p><h3>{entry_date format="%M %j, %Y"}</h3>
<p> {exp:md_eexcerpt if_exceeds="30" stop_after="30"}{insight_content}{/exp:md_eexcerpt}</p>
<p> <a href="http://{title_permalink=insight/post}">Read the full insight »</a><br />
</div><br />
{/exp:weblog:entries}<br />
{/if}<br />
<br />
{if segment_2 == "topic"} <br />
{exp:weblog:entries weblog="insight" limit="8" show_future_entries="yes" orderby="date" disable="trackbacks"}<br />
<div class="project"><br />
<a href="http://{title_permalink=insight/post}">_ {exp:imgsizer:size just_url="yes" src="{insight_author_thumb}" width="90" height="90" quality="70"}_ {sized}_ {/exp:imgsizer:size}_ </a><br />
</p><h2><a href="http://{title_permalink=insight/post}">{title}</a></h2>
<p> </p><h3>{entry_date format="%M %j, %Y"}</h3>
<p> {exp:md_eexcerpt if_exceeds="30" stop_after="30"}{insight_content}{/exp:md_eexcerpt}</p>
<p> <a href="http://{title_permalink=insight/post}">Read the full insight »</a><br />
</div><br />
{/exp:weblog:entries}<br />
{/if}