Adtool Templates

From TMM Wiki
Revision as of 14:43, 28 December 2009 by Tmmdavid (talk | contribs) (Created page with 'In the adtools admin, you can edit each type to control the template that will be used to display it. You can also override this setting in the display_adtools or nats_display_a…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

In the adtools admin, you can edit each type to control the template that will be used to display it. You can also override this setting in the display_adtools or nats_display_adtools smarty function call

Pass in tpl=xxx to set the base template name. Pass in view=yyy to set the view. This will append _cust_yyy to the base template name for custom adtool types, and will append _yyy to the base template name for built in adtool types.

Passing in no tpl will result in using the default template set for the type Passing in no view will result in using _min

Examples

In this example the default template for this adtool type is content

Custom Adtool Type

{display_adtools ... tpl=my_adtool_type} Will display the template: my_adtool_type_min


{display_adtools ... tpl=my_adtool_type view=max} Will display the template: my_adtool_type_cust_max

{display_adtools ...} Will display the template: function_display_adtools_content_min

{display_adtools ... view=max} Will display the template: function_display_adtools_cust_max

Built in Adtool Types

{display_adtools ... tpl=my_adtool_type} Will display the template: my_adtool_type_min

{display_adtools ... tpl=my_adtool_type view=max} Will display the template: my_adtool_type_max

{display_adtools ...} Will display the template: function_display_adtools_content_min

{display_adtools ... view=max} Will display the template: function_display_adtools_max