affiliatecategories
Date: 20-11-2007 12:42 Views: 2248 Author: Colin Polonowski
Note: This function is only available in version 1.1.2 and above.
Description:
Displays a list of affiliate categories.
There are two parameters:
1. template - the template that each category will be displayed in
2. nocategoriestemplate - the template displayed if there are no categories in the database (optional)
Syntax:
(affiliatecategories|template|nocategoriestemplate)
Templates can include the function specific 'category' content element.
Examples:
- (affiliatecategories|Index:AffiliateCategories|NoAffiliateCategories)
Displays a list of affiliate categories using the Index:AffiliateCategories template. If there are no categories available then the NoAffiliateCategories template is displayed
Related Functions
affiliatelist
Tips
You can create a series of pages allowing your visitors to drill down from categories to a list of filtered affiliates with just a few simple templates by simply using the 'querystring' option to pass query string parameters into functions.
In the category template, create a link to the page where you would like to list the filtered affiliates and pass in an additional 'category' parameter as in this example:
On your affiliate list page, when you call the affiliatelist function, just pass in the querystring category parameter as shown below:

