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.

using {count} inside nested loop

December 06, 2010 5:34pm

Subscribe [3]
  • #1 / Dec 06, 2010 5:34pm

    GoElement

    37 posts

    Trying to show channel entries sorted by category.  Having trouble because {count} seems to refer to the outer loop; channel:categories and not to the inner loop; channel:entries

    I have this:

    
    
    

    What can I do to display the {count} value for each of the inner channel entries?

  • #2 / Dec 06, 2010 6:00pm

    GoElement

    37 posts

    For now I got it working by using {entry_id} to create unique identifiers for jQuery.  But it would be a bummer if {count} didn’t always refer to the inner-most loop.

  • #3 / Dec 07, 2010 8:04am

    Sue Crocker

    26054 posts

    Sounds like you have a workaround. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases