ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Repeating UL

February 24, 2011 2:03pm

Subscribe [2]
  • #1 / Feb 24, 2011 2:03pm

    dmarson

    2 posts

    Hi,
    I want to be able to use a different ul id if there are less than 4 entries.  With my current coding (seen below), it uses the ul that I want, but it repeats the ul with each list item so the li’s are not in one ul.  Is there a correct way I can make this work?  Thanks in advance.

    
    									
  • #2 / Feb 24, 2011 2:31pm

    dmarson

    2 posts

    I guess I posted my question too soon, after some digging I figured this out.  I needed to add another conditional.  For others digging for the same solution, here is the code that works:

    
    									
  • #3 / Feb 24, 2011 3:06pm

    dmarson

    2 posts

    Sorry, the ul line is all wrong.  Here’s what works:

    {if count == 1}
    <ul {if total_results >= "4"}id="slider1"{if:elseif total_results < "4"}id="sliderblank"{/if}>
    {/if}
  • #4 / Feb 25, 2011 7:55am

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, dmarson.

    Since you’re new to the EE forums, have you seen EEWiki:// How to Post a Support Request?

    Glad you were able to find out what the problem was. Don’t hesitate to post again if you run into other issues.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases