4/01/2010

How to link pages using store URL short code

If you want to add hyperlinks between the pages on your site you could specify the full http://www.yourdomain/…, but Magento provides a short code which automagically prefixes your base store URL.  If you have a CMS page with the slug “about-us”, you can link to that page from any other CMS page

using:

<a href="{{store url='about-us'}}">About Us</a>

If you wanted to link to your home page use:

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

No comments:

Post a Comment