NATS get loginid from campaignid
From TMM Wiki
(Redirected from Get loginid from campaignid (NATS3))
Jump to navigationJump to searchnats_get_loginid_from_campaignid
Pass in a campaignid, and the function will either return the corresponding loginid or store it in a smarty variable.
Alias: get_loginid_from_campaignid
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
campaignid | The campaignid you wish to translate | Any valid number | 0 | campaign=234 |
store_var | the variable you wish to store the loginid in | any valid smarty variable name | blank (loginid will be outputted directly to template) | store_var="my_special_loginid" |
Output
If store_var is set, then the function will store the corresponding loginid to that variable. Otherwise, the function will simply return the loginid onto the template itself.
Notes
If an invalid campaignid is passed into the function, the result will always be 0.