Favorites 2.5 Entry Count
The Favorites:Entry_Count loop shows the amount of times the given weblog entry(ies) have been saved to Favorites by members.
{exp:favorites:entry_count} content {/exp:favorites:entry_count}
Parameters
entry_id
entry_id="{entry_id}"
The 'entry_id' parameter allows you to hardcode an Entry ID or pass it through an embedded template. Otherwise the module will try to find the Entry ID in the URL when viewing single entry pages.
Variables
favorites_count
{favorites_count}
The 'favorites_count' variable will display the number of times the weblog entry has been saved to member's Favorites.
Conditionals
favorites_count
{if favorites_count == 0}No one liked this entry{/if}
The 'favorites_count' variable can be used as a conditional to display different messages and/or content depending on the values specified.
Examples
Below is a simple example of how you would put the Favorites:Entry_Count loop into use on a single entry page.
{exp:weblog:entries}
<h2>{title}</h2>
<p>{body}</p>
{/exp:weblog:entries}
{exp:favorites:entry_count entry_id="{entry_id}"}
<p>This entry has been saved to Favorites {favorites_count} times.</p>
{/exp:favorites:entry_count}