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.

Reverse_related_entries and total_entries

July 29, 2008 1:28pm

Subscribe [1]
  • #1 / Jul 29, 2008 1:28pm

    camwest

    14 posts

    Hey There,

    I am trying to get a list of the total entries from a category of items:

    {reverse_related_entries}{total_results}{/reverse_related_entries}

    However it is showing something like this:

    Argentina 88888888 Vintages

    I just want it to show up as 8 vintages. If i put limit=‘1’ on the reverse_related_entries then they all show up as 1.

    Help!

  • #2 / Jul 29, 2008 1:35pm

    Lisa Wess

    20502 posts

    Since you only want the total_entries to show up at once, as opposed to with each entry, try using:

    {if count == "1"}
    {total_entries}
    {/if}

    =)

  • #3 / Jul 29, 2008 1:36pm

    camwest

    14 posts

    Ugh! Thank you!

    I’ll think harder next time.

  • #4 / Jul 29, 2008 1:37pm

    Lisa Wess

    20502 posts

    Not at all, happy to help!

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

ExpressionEngine News!

#eecms, #events, #releases