====== <#TPromotions> ======
TPromotions is an object used to store and manipulate a list of promotional boxes
{{:en:public:promotionalboxes.jpg?600|}}
===== Properties =====
^ Name ^ Type ^ Description ^
| Items | Array of [[en:public:developer:template_system:tags:promotion:TPromotion]] | the list of all promotional boxes ([[en:public:developer:template_system:tags:promotion:TPromotion]] ) Note: Items is the **default property** of TPromotions objects. The items identifier can be omitted when accessing the Items property. For example, the following two lines of code are both acceptable and do the same thing: \\ * Promotions.Items[0] \\ * Promotions[0] |
| Count | Integer | The number of promotional boxes stored in Items |
| Name | String | The name of the space (Left, Top, Bottom, etc..) |
===== Constructors =====
^ Name ^ Type ^ Description ^
| [[en:public:developer:template_system:tags:promotion:tpromotions:create]] | String | construct a TPromotions object |
You can also create a TPromotions object (That will be named **Promotions**) via a call to
<#[[en:public:developer:template_system:tags:promotion:tpromotions:create|promotions]]>
===== Functions =====
none