I wonder if anybody can tell me whether the following is possible:
{if segment_2}
{exp:weblog:category_heading weblog="{my_weblog}"}
<h2>Library: {category_name}</h2>
<p> {exp:query sql="SELECT cat_id, cat_name, cat_url_title FROM exp_categories WHERE parent_id = ' {category_id}' ORDER BY cat_order ASC"}<br />
</p><h3>{cat_name} {category_id}</h3>
<p> <ul id="category_list"><br />
{exp:weblog:entries weblog="{my_weblog}" orderby="title" sort="asc" category="{cat_id}"}<br />
<li><a href="http://{file}">{title}</a></li><br />
{/exp:weblog:entries}<br />
</ul></p>
<p> {if no_results}<br />
{exp:weblog:entries weblog="{my_weblog}" orderby="title" sort="asc" category="{category_id}"}<br />
<li><a href="http://">{title}</a></li><br />
{/exp:weblog:entries}<br />
{/if}</p>
<p> {/exp:query}</p>
<p> {/exp:weblog:category_heading}<br />
{/if}I’m certain it isn’t as otherwise it would be working. I need to display entries irrespective of whether there is a child category or not. Any ideas would be appreciated.
TIA,
Daren