User Tools

Site Tools


addons:site_stats:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
addons:site_stats:start [2013/03/18 15:13]
geojames [Tags With Variables]
addons:site_stats:start [2015/01/14 23:07] (current)
geojames [Tags With Variables]
Line 63: Line 63:
 **{addon author='geo_addons' addon='site_stats' tag='number_listings_region_category' region='#' listing_type='0,1,2' category='#'}** This tag returns the total number of listings of a specific listing type from within a category a region or a region and category.  For this tag to return any results the geographic navigation addon must be installed and enabled.  The variable(s) you can pass in are: **{addon author='geo_addons' addon='site_stats' tag='number_listings_region_category' region='#' listing_type='0,1,2' category='#'}** This tag returns the total number of listings of a specific listing type from within a category a region or a region and category.  For this tag to return any results the geographic navigation addon must be installed and enabled.  The variable(s) you can pass in are:
   * region (required) - This must be numerical. This returns the number of listings within this region and sub-regions.  If you set to '10' the software will pull the total number of listings within region 10 and it's subregions.  If this is '0' or no 'region' value is passed in this tag will return nothing irregardless of the other values passed in.  You can find the region id for any specific region within the GEOGRAPHIC SETUP > REGIONS admin tool.  The region id for a region is the number in parentheses next to that region within the above mentioned admin tool.     * region (required) - This must be numerical. This returns the number of listings within this region and sub-regions.  If you set to '10' the software will pull the total number of listings within region 10 and it's subregions.  If this is '0' or no 'region' value is passed in this tag will return nothing irregardless of the other values passed in.  You can find the region id for any specific region within the GEOGRAPHIC SETUP > REGIONS admin tool.  The region id for a region is the number in parentheses next to that region within the above mentioned admin tool.  
-  * category (optional) - This must be numerical. This returns the number of listings within this category and sub-categories.  If you set to '10' the software will pull the total number of listings within category 10 and it's sub-categories.  If this is '0' or no 'category' value is passed in the category will not be considered in the count returned by this tag.  The category id passed in must be a valid category id for a category within the software.  You can find the category id for any specific category within the CATEGORIES > CATEGORY SETUP admin tool.  The category id for a category is the number in parentheses next to each category name within the above mentioned admin tool.+  * category (required) - This must be numerical. This returns the number of listings within this category and sub-categories.  If you set to '10' the software will pull the total number of listings within category 10 and it's sub-categories.  If this is '0' or no 'category' value is passed in the category will not be considered in the count returned by this tag.  The category id passed in must be a valid category id for a category within the software.  You can find the category id for any specific category within the CATEGORIES > CATEGORY SETUP admin tool.  The category id for a category is the number in parentheses next to each category name within the above mentioned admin tool.
   * listing_type (optional) - If '0' is passed in all listing types will be polled.  If you passed in '1' only unique registrants placing classifieds will be totalled.  If you pass in '2' only auctions will be polled.  If you do not pass in this variable all listing types will be polled.   * listing_type (optional) - If '0' is passed in all listing types will be polled.  If you passed in '1' only unique registrants placing classifieds will be totalled.  If you pass in '2' only auctions will be polled.  If you do not pass in this variable all listing types will be polled.
 +
 +**{addon author='geo_addons' addon='site_stats' tag='number_listings_category' listing_type='0,1,2' category='#'}** This tag returns the total number of listings of a specific listing type from within a category .  For this tag to return any results the geographic navigation addon must be installed and enabled.  The variable(s) you can pass in are:
 +  * category (required) - This must be numerical. This returns the number of listings within this category and sub-categories.  If you set to '10' the software will pull the total number of listings within category 10 and it's sub-categories.  If this is '0' or no 'category' value is passed in the category will not be considered in the count returned by this tag.  The category id passed in must be a valid category id for a category within the software.  You can find the category id for any specific category within the CATEGORIES > CATEGORY SETUP admin tool.  The category id for a category is the number in parentheses next to each category name within the above mentioned admin tool.
 +  * listing_type (required) - If '0' is passed in all listing types will be polled.  If you passed in '1' only unique registrants placing classifieds will be totalled.  If you pass in '2' only auctions will be polled.  If you do not pass in this variable all listing types will be polled.
  
 ===== Example Usage Within templates ===== ===== Example Usage Within templates =====
addons/site_stats/start.1363619628.txt.gz · Last modified: 2014/09/25 16:55 (external edit)