Ad Tool Templates

Article Topics: Ad Tools, Customization

NATS offers the ability to edit each ad tool type to control the template that will be used to display it. This can be done through the Ad Tools Admin.

You can also override this setting in the display_adtools or nats_display_adtools Smarty function call if you wish.

The following explains how to control the ad tool templates:

  • Pass in tpl=xx 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 ad tool types and will append _yyy to the base template name for ad tool types that are already built into NATS.

Passing in no tpl will result in NATS using the default template set for the ad tool type, while passing in no view will result in NATS using _min for the ad tool type.

Examples

In the following example, the default template for this ad tool ad tool 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 Ad Tool 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

Skins & Templates

Last updated

Was this helpful?