Magento – Create link to sitemap in footer

cmssitemapsstatic-block

I am creating all of my footer links in the static block already provided from the magento install. I have managed to delete the links to sitemap advanced search etc below, because i wanted those links to be with the rest of the links in the static block.

I have found a way around to link the contact form from the static block by creating a new contact us cms page and a new template file to hold the form info.

But i am having trouble finding out how i can link to the sitemap page from a static block.

Any ideas?

Thanks

Best Answer

To create a footer link add the following to your theme's layout/local.xml file (if it doesn't exist, create it):

<default>
    <reference name="footer_links">
        <action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map">
            <label>Site Map</label>
            <url helper="catalog/map/getCategoryUrl" />
            <title>Site Map</title>
        </action>
    </reference>
</default>