Why Use ‘store’ for Links in Magento CMS

cmsmagento-1.7template-directiveurl

To insert links in the CMS, we use this code:

<a href="{{store url='home'}}">home</a>

What is this "store" keyword doing and why is it called "store"?

And are there any other keywords available in place of store?

Is it also possible to write just the URL, without "store"?

If yes, what is the correct syntax?

Best Answer

Magento Syntaxes to use URLs in CMS Content:

  • get SKIN URL: {{skin url='images_foldername/image_name.jpg'}} - get image from skin folder of configured theme package
  • get Media URL: {{media url='magento-image.jpg'}} - get image from media folder
  • get Store URL: {{store url=''}}magento-page.html - get domain URL of working store
  • get Base URL: {{base url=''}}magento-page.html - get domain URL of base website.
Related Topic