What is the best way to adding custom javascript per page, EZpages? I know that you can include it in the page, but I would rather call it externally if a specific page is loaded.
What is the best way to adding custom javascript per page, EZpages? I know that you can include it in the page, but I would rather call it externally if a specific page is loaded.
I might try page-specific js loading with a jscript_whatever.php file in /includes/modules/pages/page/. In that file would be PHP logic to look up the current ez-page id, and load the desired script accordingly.
Look at /includes/templates/template_default/common/html_header.php for examples of how that loads js files.