Difference between revisions of "Nats code"
From TMM Wiki
Jump to navigationJump to searchm |
(No difference)
|
Latest revision as of 16:01, 28 November 2008
The nats_code template variable creates a linkcode. For example, you can add the following code anywhere on your Affiliates Area.
{$nats_code[program][site]}
Replace program with a program ID number; replace site with a Site ID number. If the program or side ID number aren't included, NATS won't display anything.
You can use nats_code in an if statement to only display something if a valid program and site ID number is provide. For example:
{if $nats_code[program][site]} action {/if}