Magento

How to use Magento Short Codes, Get Skin, and Media Folder in a Static Block

 

One of the powerful features of the Magento framework is that of its short codes. It allows a store owner to quickly retrieve information, URLs and elements and use them within pages.

To retrieve the element URL path in a STATIC BLOCK:

SKIN URL

{{skin url='images/sampleimage.jpg '}}
Media URL
{{media url='/sampleimage.jpg'}}
Store URL
{{store url='mypage.html'}}
Base URL
{{base url='yourstore/mypage.html'}}

 

Hans-Eirik Hanifl

Hans-Eirik Hanifl is a forward thinking e-commerce and marketing consultant. As an advocate for the free exchange of knowledge, he founded E-Commerce Gorilla as a place where like-minded individuals can ask questions and share their expertise on practical solutions in the area of e-commerce and marketing. He is the owner of TRM Marketing and an avid supporter of the open source community.

Related Articles

Leave a Reply

Back to top button
Sign up to the E-Commerce Gorilla newsletter for updates & special promotions.
Join Our Newsletter
SUBSCRIBE
We value your privacy and protect your information like our own. Unsubscribe at anytime.