DUMPTOKENS List

factor

Verified User
Joined
Jul 22, 2017
Messages
3,769
Location
USA
As I understand the feature you're referencing you need to add |DUMPTOKENS| to your template file while you're developing it.

When you run it, it will output all the possible tokens on that page instead of the actual data.
Correct but how do I do this and where does it dump to? Screen? File?


I want to know all the DNS related tokens currently like in dns_txt.conf.

If I add |DUMPTOKENS| in the file dns_txt.conf. How do I invoke the template to see the Dump of Tokens?
 
how Dumptokens would work in this context either.
Me either. Now you are seeing why I asked. example in dns_txt.conf

|DOMAIN|.="v=spf1 a mx ip4:|SERVER_IP||EXTRA_SPF| ~all"
So how do I find let's say the admin email token or the ipv6 token...

There should be a real list somewhere?
 
I agree, it's not really well documented.

I found an answer to get the admin email is
ADMINThe email address of the server admin. [email protected]

This link has a list of several tokens. This is the only one I found that actually lists tokens

Looks like the vhost template documentation has the most up to date usage information on using tokens.

I'm still wondering where these tokens are pulled from. As far as I can see these are only key value pairs like what is in DirectAdmin.conf
 
If I add |DUMPTOKENS| in the file dns_txt.conf. How do I invoke the template to see the Dump of Tokens?
I would think if you add it and create a new account you'll see the tokens in the Zone files of that account.
 
Back
Top