Nats code

From TMM Wiki
Jump to navigationJump to search
NATS 3
  Helper Functions
nats_code
nats_extract_program
nats_extract_site
nats_modify_program
nats_modify_site

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}