Showing posts with label link. Show all posts
Showing posts with label link. Show all posts

Monday, 1 August 2011

Magento linking to a CMS created page in the CMS

If you're looking to link to a CMS page using Magento's page editor, in the CMS, use this bit of code in the a href swapping out the "about-us" for the page identifier:

{{store direct_url="about-us"}}

example:
<a href="{{store direct_url="about-us"}}">About Us</a>

If you are linking to a Category, add .html to the end of the identifier.

Friday, 29 July 2011

Magento Referencing images in the CMS

Referencing an image in the Skin's images Folder
If you want to reference an image in your skin folder, in a page in magento (created using the CMS), use this bit of code in the "src":

{{skin url='images/image.gif'}}

example:
<img src="{{skin url='images/image.gif'}}" alt="alternate text" />

Referencing an image in the Media Folder
If you want to reference an image in the media folder, in a page in magento (created using the CMS), use this bit of code in the "src":

{{media url='images/image.gif'}}

example:
<img src="{{media url='image.gif'}}" alt="alternate text" />