MASSMEDIUMS - Responsive Web Design Cincinnati MASSMEDIUMS - Responsive Web Design Cincinnati

Short Codes Variables on Magento CMS Pages

Ever wonder how to Leverage Variables on Magento CMS Pages? This lesson will help you leverage variables on Magento CMS pages via Magento short codes. Use these template short codes to avoid broken links in your pages.

Leverage Variables on Magento CMS Pages

Add Mini Search to Block or Page

{{block type="core/template" name="" as="topSearch" template="catalogsearch/"}}

If you have skipped the stock Magento CSS, you'll need to find or create styles for id search_autocomplete or class search-autocomplete

Add Newsletter Sign-up to CMS Page

{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}

Current Store URL

This short code can be used two ways. The first way is to add the current store URL before the page name.

<a href="/{{store url=''}}the-graduate-package.html" />

The second way includes the page name in the URL with a slash at the end.

<a href="/{{store url='the-graduate-package'}}" />

Add static block to CMS page

{{block type="cms/block" block_id="jquery-carousel"}}

Featured Category on Home Page

{{block type="catalog/product_list" column_count="4" category_id="8" template="catalog/product/list.phtml"}}


{{skin url='images/sampleimage.jpg'}}

To get Media URL

{{media url='/sampleimage.jpg'}}

To get Store URL

{{store url='mypage.html'}}

To get Base URL

{{base url='yourstore/mypage.html'}}

Newsletter Block

{{block type="newsletter/subscribe" template="newsletter/ptd-subscribe.phtml"}}

Show Company Name, Company Phone or Company Address1

{{config path="general/store_information/name"}}
{{config path="general/store_information/phone"}} {{config path="general/store_information/address"}}
Ready to get started? Let us take your website to the next level. LET'S TALK
MASSMEDIUMS has been essential in the growth of our company, delivering high-impact marketing tools and a first-rate web presence

, VP, Ziegler Practice Transitions