Add Javascript / CSS to the page head from within a Magento Block
Add Javascript / CSS to the page head from within a Magento Block
Say you want to load a particular script on the page, but only if a particular block loads on that page. As it stands, Magento’s core/template blocks don’t support this. This article will show you how.