I’m probably overlooking something extremely basic, as I just started learning EE.
I’m trying to build a portfolio for a client inside of a jQuery slider. The slider populates with thumbnails of each entries submitted. Each slider page can hold 18 new entries from the portfolio channel. The portfolio channel is divided into 5 categories, logos, print, web, video, and other.
I have also designed it so that you can view only entries from one category. By adding the value of the category to the URL I can make the slider only show specific entries as shown below.
<div id="slideshow">
<div id="slidesContainer">
<!-- Slide 1 -->
<div class="slide">
<div class="Row">
{exp:channel:entries channel="portfolio" category="{last_segment}" limit="18"}
{portfolio_entry}
{/exp:channel:entries}
</div>
</div>
<!-- End Slide 1 -->
{if ?category entries? => 18}
<!-- Slide 2 -->
<div class="slide">
<div class="Row">
{exp:channel:entries channel="portfolio" category="{last_segment}" limit="18" offset="18"}
{portfolio_entry}
{/exp:channel:entries}
</div>
</div>
<!-- End Slide 2 -->
{/if}
</div>
</div>My problem is, once I’m viewing a specific category how do I add a conditional statement instructing to only show slide to if their are more than 18 entries in the Logos category?
Or do I need to scrap all this and start over with a new structure?