Good morning all,
I would like to execute some logic based on the number of entries that are returned. I currently have a page that executes the following code:
<div id="blog">
<div id="headerEntries">
{exp:weblog:category_heading weblog="{my_weblog}"}
<h2 class="headerCategory">
{category_name}
</h2>
{/exp:weblog:category_heading}
{exp:weblog:entries weblog="{my_weblog}" orderby="date" sort="desc" limit="1"}
{date_heading}
<h3 class="date">
THIS ISSUE:: {entry_date format=' %F %Y '}
</h3>
{/date_heading}
{/exp:weblog:entries}
</div>
{exp:weblog:entries weblog="{my_weblog}" orderby="date" sort="desc" display_by="month"}
<h1 class="headerArchive">{title}</h1>
<div class="container_archive">
<p>
<strong>{article_author}</strong>
</p>
{summary}
<p>
- <a href="http://dev.vpi-is01/dsn/index.php/entries_archive_display/{url_title}" class="linkFull">Read Full Article</a>
</p>
</div>
{/exp:weblog:entries}
</div>
What I’d like to do is add code that would change what is displayed based on whether or not there is more than one entry. Is there a way to do this?
Thanks.
