Polish - Available tokens |DOMAIN|, |IP|, |HOME|, |ADMIN| ...

raymor

New member
Joined
Jul 26, 2007
Messages
2
Over the last ten years I've used most every available control panel many times and
grew to hate most of them. DirectAdmin is awesome, though. It's so great it my opinion
that we're down to little polish things like on the "Custom HTTPD configurations it says:

Code:
  Available Tokens:
DOMAIN, IP, HOME, ADMIN, DOCROOT, USER, GROUP

That looks to me like I use put DOMAIN in there and it will be replaced by the domain name.
Of course that didn't work, so I dug through the site and found I needed to use |DOMAIN|

You could eliminate the need to go searching through this site to figure out how to use
those tokens and make the page self-documenting by including the pipes:

Code:
  Available Tokens:
|DOMAIN|, |IP|, |HOME|, |ADMIN|, |DOCROOT|, |USER|, |GROUP|
 
Hello,

Thanks for the suggestion. I've added the | bits, as well as the extra tokens that are now available there
Code:
                |DOMAIN|,
                |IP|,
                |HOME|,
                |ADMIN|,
                |DOCROOT|,
                |USER|,
                |GROUP|,
                |CERT|,
                &#124;KEY&#124;,<br>
                &#124;HOSTNAME&#124;,
                &#124;SAFE_MODE&#124;,
                &#124;OPEN_BASEDIR&#124;,
                &#124;CREATOR&#124;,
                &#124;BANDWIDTH&#124;,
                &#124;QUOTA&#124;

On a side note, if you're ever using any template an would likely to know which tokens are avaiable to you, you can simply use
Code:
|DUMPTOKENS|
and you'll get the full list of tokens, and their values. This is usually less functional for practical applications, but very handy for scripting.

John
 
Back
Top