Magento News
Magento – link to a frontend skin js file from an admin file
Hi All
I’m already using jQuery in my frontend skin files. I’ve now added some extra functionality in an admin phtml file, that also needs to use jQuery. I don’t want to have to include it twice, but how can I link to the existing jQuery file dynamically, assuming I don’t know what theme package name is being used on the frontend (because obviously that can change, so I don’t want it hardcoded)?
For example, I tried this, but it gives me the admin theme package name, not the frontend package:
<?php
// Get the package name
$configData = Mage::getStoreConfig('design');
$package = $configData['package']['name'];
?>
Anyone?
Magento – link to a frontend skin js file from an admin file
Possibly Related Posts:
- Database query different results
- Menu highlight in magento under admin
- magento disable a banner on certain category pages or have a banner with multiple links
- Magento, using ACL for frontend. Possible?
- Magento IE-7 Fix In Windows XP
RSS Feed