Added by Vlad Shashkov, last edited by Dimitri Butko on Apr 08, 2010  (view change)

Labels:

banner banner Delete
boxbanners boxbanners Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Tokens - boxBanners

boxBanners is designed to show random banner out of selection in Banner Manager.
The banner can be of three basic types: "HTML", "Image" or "Flash".
The tokens for a selected/shown banner are given below.

[%$banner.link.href%] - indicates the URL banner is linking to
[%$banner.link.target%] - indicates the target where URL will be open
[%$banner.link.type%] - type of page link: "external" or "internal"
[%$banner.title%] - title of a banner
[%$banner.text%] - text of a banner
[%$banner.image.src%] - URL to the image or object of current banner
[%$banner.width%] - width of banner
[%$banner.height%] - height of banner
[%$banner.type%] - type of banner

In any case, one can access all the banners (not only random one) in the template.
For such purposes array [%$banners%] is available.
Each element of this array has 100% same structure as described above.

Example of usage can be shown as follows:

[%foreach item=banner from=$banners%]
  [%$banner.title%]
[%/foreach%]