Preface: I’ve created a jQuery scroller like the one found here: http://flowplayer.org/tools/demos/scrollable/index.html. Think of each image as an entry in one channel. My issue is not getting the scroller to work, but getting ExpressionEngine to display DIVs or not.
The code that I wish would work, but obviously doesn’t, is below. Note my wish to use the conditionals where they are, which would mean that if there are more than 4 entries, show another div.viewableWindow and show entries. If not, then don’t. Anyone know how I can achieve something like this?
<div class="window">
<div class="viewableWindow">
{exp:channel:entries channel="my-channel" status="open" limit="4" disable="pagination" orderby="expiration_date" sort="asc"}
{entry-image}
{/exp:channel:entries}
</div>
{if count > 4}
<div class="viewableWindow">
{exp:channel:entries channel="my-channel" status="open" limit="4" offset="4" disable="pagination" orderby="expiration_date" sort="asc"}
{entry-image}
{/exp:channel:entries}
</div>
{/if}
{if count > 8}
<div class="viewableWindow">
{exp:channel:entries channel="my-channel" status="open" limit="4" offset="8" disable="pagination" orderby="expiration_date" sort="asc"}
{entry-image}
{/exp:channel:entries}
</div>
{/if}
</div>Thanks for your help.
EE v2.2.2 - Build: date 20110801
Moved to Community Help forum by Moderator