Latest Register Log In

+ Advanced Search

Totals of Each Type on Current Page

Totals of Each Type on Current Page
By
Jan 08, 2010 (Edited Mar 11, 2014)

Suppose you want to show certain content only when there are premium type listings on the page being viewed. You may first think to test for that with <IF {CATTYPETOTALS[premium]}>, but that checks how many in the entire category -- if you're on page 3, there may be no premium links on page 3 even though there are a bunch on page one. So, use {NUMPREMIUMLINKSONPAGE} instead. For example:
<IF {NUMPREMIUMLINKSONPAGE}>there are {NUMPREMIUMLINKSONPAGE} oremium links here on this page</IF>


This works in the 'display listings in category' template and also in the 'search listings' template.




Description Checking how many listings of each type are on the current page.
Rating
Views 342 views. Averaging 0 views per day.
Similar Listings