mcpacific Posted June 10, 2014 Share Posted June 10, 2014 I wrote a new provisioning module and everything works great, but I was going to move my javascript from being embedded in the modulecustom.tpl file to an external file. However, when doing so my likes to the Smarty language variables break. Is it possible to do this, or do I have to leave the javascript in the body of the template file? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Ryan Posted June 10, 2014 Share Posted June 10, 2014 Have you tried using the literal tags? See - http://docs.whmcs.com/Template_Syntax#Using_curly_braces_for_literal_statements --Thanks 0 Quote Link to comment Share on other sites More sharing options...
mcpacific Posted June 10, 2014 Author Share Posted June 10, 2014 Yes. Whether they're applied or not, the smarty variables contained in the javascript external file itself do not work. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Ryan Posted June 10, 2014 Share Posted June 10, 2014 You may have to reference the tpl file as an include to external file and then try it without the literal tags. Normally, this is not something we support so you may just have to tweak it until you find what works. Unfortunately it just may not work the way you would like it to. --Thanks 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.