|
|
Line 2: |
Line 2: |
| | show_adtools_admin_section = true | | | show_adtools_admin_section = true |
| }} | | }} |
− | 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.
| + | [[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]]. |
− | 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 | + | You can also override this setting in the ''display_adtools'' or ''nats_display_adtools'' [[Smarty]] function call if you wish. |
− | Passing in no view will result in using _min
| + | |
| + | 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. |
| + | ** 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 this example the default template for this adtool type is content | + | |
| + | In the following example, the default [[Ct#Template|template]] for this adtool type is "content": |
| + | |
| === Custom Adtool Type === | | === Custom Adtool Type === |
| | | |