Difference between revisions of "Nats display adtools"
From TMM Wiki
Jump to navigationJump to searchLine 20: | Line 20: | ||
! Default Value | ! Default Value | ||
! Example | ! Example | ||
+ | |- | ||
+ | | category | ||
+ | | The category id of the adtool | ||
+ | | Any valid category id | ||
+ | | The category ID from the request | ||
+ | | category=1 | ||
|- | |- | ||
| tpl | | tpl |
Revision as of 14:56, 21 March 2009
Applies to NATS 4.0.25 and greater.
nats_display_adtools
Displays adtools with a particular type ID number.
Alias: display_adtools
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
category | The category id of the adtool | Any valid category id | The category ID from the request | category=1 |
tpl | Template used to display output | Any valid template | The template, function_display_adtools | tpl="mytemplate" |
assign_prefix | Prefix output variable names with this word | Any valid Smarty variable name | Empty | assign_prefix="myvar" |
typeid | The type of adtool | Any valid adtool type ID number | The type ID from the request | typeid="123" |
siteid | Only show adtools for one site | Any valid site ID number | None | siteid="123" |
start | Skip this many adtools | Any whole number greater than, or equal to, zero | 0. Skips no adtools | start="10" |
count | Display this many adtools | Any whole number greater than zero | 20. Displays 20 adtools | count="10" |
order | Set the order the adtools will be returned | Any valid order statement | None. (No prefix is used) | assign_prefix="myvar" |
assign_prefix | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | None | order="published_date ASC" |
data_only | Set variables but don't display the template | 1 | None. The template is displayed. | data_only=1 |
Output
A list of adtools matching an adtool type ID number. Also outputs several variables; variables are prefixed with the argument to the assign_prefix parameter described above.
- .type
- .type_details
- .field_assoc
- .adtools
- .adcount
- .typeid
- .start
- .count
Notes
None.
See Also
- New NATS4 Affiliate Adtools -- NATS4 Adtools Page uses this function