affiliatelist

Date: 20-11-2007 12:18 Views: 1620 Author: Colin Polonowski

Description:

Displays a list of affiliates, optionally filtered by category.

There are two parameters:

1. template - the template that each affiliate will be displayed in
2. category - the affiliate category to filter on. This should be the category name (optional)

Syntax:

(affiliatelist|template|category)

Templates can include the function specific 'affiliate_company' and 'affiliate_id' content elements.

Note: To link to an affiliate in any template you should use the affiliatelink.php PHP script and pass parameters named localaffiliateid and optionally, url. The localaffiliateid parameter identifies the affiliate via the affiliate_id content element.

Examples:


  • (affiliatelist|Index:Affiliate|DVD Retailers)
    Displays a list of affiliates in the DVD Retailers category using the Index:Affiliate template

  • (affiliatelist|Index:Affiliate|)
    Displays a list of all affiliates using the Index:Affiliate template


Related Functions

affiliatecategories