Here is an example of how you can use it in your emails:
...is in these campaigns: {foreach from=$affiliatecampaigns item=campaign} Name: {$campaign.name} Description: {$campaign.description} --------------------------------------------------------------------- {/foreach}
Example output:
...is in these campaigns:
Name: campaign1
Description: This is my first campaign
----------------------------------------------------------------------
Name: campaign2
Description: This is my second campaign
----------------------------------------------------------------------
Name: campaign3
Description: This is my third campaign
----------------------------------------------------------------------
Other variables that you can use in $campaign.PROPERTY_NAME:
- campaignid - id of the campaign
- rtype - type of the campaign
- rstatus - status of the campaign
- name - name of the campaign
- description - description of the campaign
- dateinserted - the date when the campaign was created
- isdefault - Y if campaign is the default one, or N if it is not
- logourl - url of the logo image of the campaign
- validfrom - the date the campaign is valid from
- validto - the date until the campaign is valid
- accountid - account id, where the campaign belongs