Project

General

Profile

Actions

{ia_print_js}

To include js file into template's code {ia_print_js} function is used.

{ia_print_js files="intelli/intelli.new,_IA_URL_plugins/newplugin/js/newfile"}

@files parameter is used to specify one or multiple js files to be included.

The file names use @subrion_folder/js/ path by default and should be input without '.js' extension.
E.g. the code below will include @subrion_folder/js/intelli/intelli.new.js file:

{ia_print_js files="intelli/intelli.new"}

The file names should be separated with commas if multiple files are used.
Example:

{ia_print_js files="intelli/intelli.new,admin/newfile"}

If you need to specify a custom path '_IA_URL_' prefix is used ('_IA_URL_' will be replaced with @subrion_folder).
E.g. the code below will include @subrion_folder/packages/newpackage/js/newfile.js

{ia_print_js files="_IA_URL_packages/newpackage/js/newfile"}

If you need to print a custom javascript file that's placed in a current template folder '_IA_TPL_' prefix is used ('_IA_TPL_' will be replaced with @subrion_folder/templates/@current_template/js/).
E.g. the code below will include @subrion_folder/templates/segin/js/apps.js

{ia_print_js files="_IA_TPL_apps"}

Updated by Vasily Bezruchkin over 7 years ago · 2 revisions