What is the equivalent of {{media url="wysiwyg/image.jpg"}}
which can be used in CMS pages if we want to use this in a normal .phtml
file (of the type core/template
)
Magento – Equivalent of the CMS Directive {{media url=”…”}} in Normal Block Templates
blockscmsmediaurl
Best Answer
The rendering of this such URLs is done when displaying CMS pages or blocks in
\Mage_Core_Model_Email_Template_Filter::mediaDirective
:Base on this code, just an
can be used in the template