Skip to main content
Tweeted twitter.com/#!/StackExpression/status/399884692163674112
added 19 characters in body
Source Link
Stephen Callender
  • 3.9k
  • 2
  • 19
  • 44

Display the number of entries in a chanelchannel

I would like to display the total number of entries for a channel and nothing else is required to be displayed.

Is there a more efficient way to do this than the following?

{exp:channel:entries channel="products" }

{exp:channel:entries channel="products"}
  {if count == total_results}
    {count}
  {/if}
{/exp:channel:entries}

{/exp:channel:entries}

Display the number of entries in a chanel

I would like to display the total number of entries for a channel and nothing else is required to be displayed.

Is there a more efficient way to do this than the following?

{exp:channel:entries channel="products" }

{if count == total_results}
    {count}
{/if}

{/exp:channel:entries}

Display the number of entries in a channel

I would like to display the total number of entries for a channel and nothing else is required to be displayed.

Is there a more efficient way to do this than the following?

{exp:channel:entries channel="products"}
  {if count == total_results}
    {count}
  {/if}
{/exp:channel:entries}
Source Link
mkuk
  • 131
  • 1
  • 2

Display the number of entries in a chanel

I would like to display the total number of entries for a channel and nothing else is required to be displayed.

Is there a more efficient way to do this than the following?

{exp:channel:entries channel="products" }

{if count == total_results}
    {count}
{/if}

{/exp:channel:entries}