An answer in different post states that there is a specific order when creating the appropriate xml node, a quote from there:
To load it on just admin dashboard use the (full 3 element) route with underscores as separators to the page
So, I've dumped the following values in my page:
Mage::app()->getRequest()->getControllerName(); // -> adminhtml_sport Mage::app()->getRequest()->getActionName(); // -> edit Mage::app()->getRequest()->getRouteName(); // -> sport Mage::app()->getRequest()->getModuleName(); // -> sport
What I've added in my
<adminhtml_sport_sport_edit> <reference name="head"> <action method="addJs"><script>path/custom/script.js</script></action> </reference> </adminhtml_sport_sport_edit>
did not work. As a last note, I would like to ask: Can this be achieved by using the
config.xml file in my custom extension and nowhere else?. Thank you for your time.