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.

Switch within exp:comment:entries

February 10, 2011 8:23am

Subscribe [2]
  • #1 / Feb 10, 2011 8:23am

    variouspixels

    31 posts

    Im a noob and have not completed a full EE website yet but I thought I had switch understood.
    When I view this code in the browser every <li> has class ‘even’. What do I need to do to?

    No problems with switch elsewhere in website.

    // Stripped-down version:
    <ul>
    {exp:comment:entries}
        <li class="{switch='even|odd'}">
            {switch='even|odd'}
                          
            <strong>{name}</strong>
            {comment}
        </li>
    {/exp:comment:entries}
    </ul>
  • #2 / Feb 10, 2011 10:55am

    Sue Crocker

    26054 posts

    Hi, gemmes.

    See the following thread

    Is your exp:comment:entries tag embedded in another tag?

  • #3 / Feb 10, 2011 11:00am

    variouspixels

    31 posts

    Yes it was.

    Many thanks,


    gemmes

  • #4 / Feb 10, 2011 4:04pm

    Ingmar

    29245 posts

    So, you’re up and running?

  • #5 / Feb 11, 2011 5:31am

    variouspixels

    31 posts

    Yes.

  • #6 / Feb 11, 2011 7:39am

    Ingmar

    29245 posts

    Cool. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases