How to get the skin,media url in magento
Posted by navaneeth on Nov 19, 2012 in Magento | No comments yet
we can call the images and js files inside the template’s skin folder in an phtml file by the following code snippet
<?php echo $this->getSkinUrl('images/image.jpg') ?> <?php echo $this->getSkinUrl('js/sample.js') ?>
And in static block we can call it as
{{skin url='images/image.jpg '}} {{skin url='images/js.jpg '}}
To get the media url in static block use the code
{{media url='/image.jpg'}}
Leave a Reply