0

Is it possible to add in xml configuration .js file from root folder. In root folder we have the folder js_components. How can I add a file in xml? I can not move this "js_components" folder in default "js" folder.

            <action method="addJs"><script>js_components/test.js</script></action>
  • please specify Magento version – kunj Aug 6 '18 at 12:41
  • We can not do that by XML because Magento searching js,skin_js,js_css values in params – kunj Aug 6 '18 at 13:12
0

Kunj, Thank you for your answer. I found how to solve it:

            <action method="addJs"><script>../js_components/test.js</script></action>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.