Submitted by Locutus on Tue, 12/21/2010 - 12:20
Is there a really fully complete listing of template variables? :)
The one in http://www.virtualmin.com/documentation/id,template_variable_listing is seemingly missing some, I found e.g. "IF-MYSQL_PASS" and "DB" in the default new-domain template which are not in the list.
Also, the default template has a little issue. It will tell the domain owner, if MySQL is enabled, that their database name is "domain name with underscores instead of - and .", even if I have "automatically create default database" turned off.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Tue, 12/21/2010 - 21:49 Comment #1
The list of possible template variables is always growing, as they actually Virtualmin internal database fields for the domain. However, I have added those that you mentioned to the template docs..
The ultimate way to find all variables is to look at each domain's data file in the
/etc/webmin/virtual-server/domains
directory.Submitted by Locutus on Wed, 12/22/2010 - 03:59 Comment #2
Thanks for your reply, Jamie!
Did I understand your last sentence correctly... All entries in the
domains
file can be template variables? Like I can use ${PUBLIC_HTML_DIR} and get the contents of that entry?And the 0/1 entries I can use as IF- variables...? Like, ${IF-LIMIT_FTP} or ${IF-EDIT_IP}?
Submitted by JamieCameron on Wed, 12/22/2010 - 18:36 Comment #3
Yes, and yes.
Submitted by Locutus on Thu, 12/23/2010 - 08:28 Comment #4
Very nice! And thanks!