Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Michael Impelluso Developer
    #157271

    I need to load a custom *.js file on all pages in order to tie a form submission to our system’s backend. I typically edit this in the “Edit HTML” section and include a tag such as:

    <script type=”text/javascript” src=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/js/formjavascript.js”></script>

    But since this runs the T3 framework, I am not finding an easy way to do this. How can I make the pages include the code to load this file on each page?

    Thanks

    Sherlock Friend
    #366083

    Dear zbeatty,

    if you have a custom *.js file,Just put it into the folder of template/your_template/js,then open the file template/info.xml change this line
    <scripts>
    </scripts>
    To add your file
    <scripts>
    <file>js/youfilename.js</file>
    </scripts>

    It is easy and it would help

    Michael Impelluso Developer
    #366955

    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Michael Impelluso 13 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum