Hello,
I am fairly new to EE but have really enjoyed it so far. This is the first problem I’ve had that I haven’t been able to find a solution for. I have 2 weblogs, 1 for articles and 1 for case-studies. I am using the code on each template to display them, there is a category submenu to filter the weblog entries. The articles page works fine but the case studies page triggers no_results even though there is case studies unless I filter by category and then everything works fine. How can I get all the case-studies to display by default?
Here is the code for the case-studies template:
{exp:weblog:category_heading weblog="case-studies"}
<h2>{category_name}</h2>
<p>{/exp:weblog:category_heading}</p>
<p>{exp:weblog:entries weblog="case-studies" status="not closed" orderby="date"}</p><h2><a href="http://{title_permalink=">{title}</a></h2>
<p>Posted on {entry_date format="%M %d, %Y at %h:%i %A"} in {categories backspace="1"}<a href="http://{path=approach/case-studies}">{category_name}</a>, {/categories} by {author}<br />
{article-summary}<br />
<a href="http://{title_permalink=">Read More</a><br />
{if no_results}There are currently no case-studies published{if segment_4!=""} in this category{/if}.{/if}<br />
{/exp:weblog:entries}There is an include for the category sub nav:
<ul id="sub-menu">
<li{if embed:section == "Approach"} class="selected"{if:else}{/if}><a href="http://{path=approach}">Approach</a></li>
<li{if embed:section == "Case Studies"} class="selected"{if:else}{/if}><a href="http://{path=approach/case-studies}">Case Studies</a>
<ul>
<li><h4>Practice Area:</h4>
<p> <ul><br />
{exp:weblog:categories weblog="case-studies" show_empty="yes" style="linear" category_group="1"}<br />
<li{if segment_4==category_url_title} class="selected"{/if}><a href="http://{path=approach/case-studies}">{category_name}</a></li><br />
{/exp:weblog:categories}<br />
</ul><br />
</li><br />
<li></p><h4>Other:</h4>
<p> <ul><br />
<li{if segment_3==""}{if segment_2=="case-studies"} class="selected"{/if}{/if}><a href="http://{path=approach/case-studies}">View all</a></li><br />
{exp:weblog:categories weblog="case-studies" show_empty="yes" style="linear" category_group="3"}<br />
<li{if segment_4==category_url_title} class="selected"{/if}><a href="http://{path=approach/case-studies}">{category_name}</a></li><br />
{/exp:weblog:categories}<br />
</ul><br />
</li><br />
</ul><br />
</li><br />
</ul>Thanks for any help!
Brad