Difference between revisions of "Adtool Templates"
TMMStephenY (talk | contribs) m |
|||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
| show_adtools_admin_section = true | | show_adtools_admin_section = true | ||
}} | }} | ||
− | |||
− | + | [[NATS4]] offers the ability to edit each [[Ct#Adtool|adtool]] type to control the [[Ct#Template|template]] that will be used to display it. This can be done through the [[NATS4 Adtools Admin|Adtools Admin]]. | |
− | |||
− | Passing in no tpl | + | 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 [[Ct#Adtool|adtool]] [[Ct#Template|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 [[Ct#Template|template]] name for custom adtool types, and will append ''_yyy'' to the base [[Ct#Template|template]] name for adtool types that are already built in to [[NATS4]]. | ||
+ | |||
+ | Passing in no ''tpl'' wil result in [[NATS]] using the default [[Ct#Template|template]] set for the adtool type, while passing in no ''view'' will result in [[NATS]] using ''_min'' for the adtool type. | ||
== Examples == | == Examples == | ||
− | In | + | |
+ | In the following example, the default [[Ct#Template|template]] for this adtool type is "content": | ||
+ | |||
=== Custom Adtool Type === | === Custom Adtool Type === | ||
Line 39: | Line 46: | ||
{display_adtools ... view=max} | {display_adtools ... view=max} | ||
Will display the template: function_display_adtools_max | Will display the template: function_display_adtools_max | ||
+ | |||
+ | [[Category:NATS4 Adtools Admin]] |
Latest revision as of 11:22, 19 May 2011
NATS4 offers the ability to edit each adtool type to control the template that will be used to display it. This can be done through the Adtools 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 adtool templates:
- Pass in tpl=xx to set the base template name.
- Pass in view=yyy to set the view.
Passing in no tpl wil result in NATS using the default template set for the adtool type, while passing in no view will result in NATS using _min for the adtool type.
Examples
In the following 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