Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

top.links new entry in every page
 
bfox
Jr. Member
 
Total Posts:  12
Joined:  2008-07-18
 

Hello,
i’ve added an entry to the top.links menu. To do this i added these lines in the default section of the page.xml:
<reference name="top.links">
<action method="addLink" translate="label title"><label>Home</label><url>/</url><title>Home</title><prepare/><urlParams/><position>11</position></action>
</reference>

It works, but just in the home page. How can i show this to every section of my shop?

Thanks,
Bruno

 
Magento Community Magento Community
Magento Community
Magento Community
 
LeeSaferite
Guru
 
Avatar
Total Posts:  322
Joined:  2007-08-31
Lake City, FL
 

/app/design/frontend/{package}/{theme}/layout/local.xml

<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
    <default>
        <
reference name="top.links">
            <
action method="addLink" translate="label title">
                <
label>Home</label>
                <
url>/</url>
                <
title>Home</title>
                <
prepare/>
                <
urlParams/>
                <
position>11</position>
            </
action>
        </
reference>
    </default>
</
layout>
 
Magento Community Magento Community
Magento Community
Magento Community
 
bfox
Jr. Member
 
Total Posts:  12
Joined:  2008-07-18
 

Thanks,
i’ve created the local.xml and put in it the code: it doesn’t work!
I can see the link in the home page but it’s missing in all internal pages (like search, catalog, etc.).
Weird problem, i can’t understand why!

Bruno

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top