toplinks anf footer links

Hi

How do I change and add the links in the top and footer

Thanks

John

8 answers

Profile photo of Css Magician 0.00 $tone January 4, 2013
Public

Hi

How do I change and add the links in the top and footer

Thanks

John

Dear Johnnieg,

you can add the links in the top and footer by xml.
Example add to top:

Code:

<reference name="top.links">
            <action method="addLink" translate="label title" module="customer">
                  <label>Your new link</label>
                  <url helper="customer/Your new link url"/>
                  <title>Your new link</title><prepare/>
                  <position>100</position>
            </action>
        </reference>

Example add to footer:

Code:

<reference name="footer_links">
            <action method="addLink" translate="label title" module="customer">
                  <label>Your new link</label>
                  <url helper="customer/Your new link url"/>
                  <title>Your new link</title><prepare/>
                  <position>100</position>
            </action>
</reference>
#1
Profile photo of John Graham 0.00 $tone January 4, 2013
Public

Thanks again,

I’ve made these changes to the bottom of the page.xml:

<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>About Us</label>
<url helper="customer/about-ict-direct"/>
<title>About ICT Direct</title><prepare/>
<position>100</position>
</action>
</reference>

<reference name="footer_links">
<action method="addLink" translate="label title" module="customer">
<label>About ICT</label>
<url helper="customer/about-ict-direct"/>
<title>About ICT Direct</title><prepare/>
<position>100</position>
</action>
</reference>
</layout>

I’ve cleared the cache, but they don’t show -- I’m really confused

my site is http://www.devstore.ict-direct.co.uk

#4
Profile photo of Css Magician 0.00 $tone January 4, 2013
Public

Please add on footer block and header , example

Code:

<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
                <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
                    <label>Page Footer</label>
                    <action method="setElementClass"><value>bottom-container</value></action>
                </block>
                <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
<reference name="footer_links">
<action method="addLink" translate="label title" module="customer">
<label>About ICT</label>
<url helper="customer/about-ict-direct"/>
<title>About ICT Direct</title><prepare/>
<position>100</position>
</action>
</reference>
            </block>

Code:

<block type="page/html_header" name="header" as="header">
                <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
				<block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" />
                <block type="page/template_links" name="top.links" as="topLinks" />
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>About Us</label>
<url helper="customer/about-ict-direct"/>
<title>About ICT Direct</title><prepare/>
<position>100</position>
</action>
</reference>
				<block type="page/template_links" name="logout.links" as="logoutLinks" template="page/template/logoutlinks.phtml" />
				<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
                    <label>Navigation Bar</label>
                    <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
                </block>
            </block>

you can search footer block and header block on page.xml

#5
Profile photo of John Graham 0.00 $tone January 4, 2013
Public

Hi

thanks for getting back to me.

I’ve made the changes:

<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>About Us</label>
<url>about-ict-direct</url>
<title>About ICT Direct</title><prepare/>
<position>100</position>
</action>
</reference>

<reference name="footer_links">
<action method="addLink" translate="label title" module="customer">
<label>About ICT</label>
<url>about-ict-direct</url>
<title>About ICT Direct</title><prepare/>
<position>100</position>
</action>
</reference>
</layout>

I’ve refreshed the cache but it still doesn’t work

Any ideas?

Thanks

john

#7
Profile photo of Sherlock 0.00 $tone January 5, 2013
Public

Hi john,

you can pm duchh your FTP account as well as the admin account, he then will check the issue right at your site, let me know when you done sent pm i will notice him for checking !

#8

Please login or Register to Submit Answer

Written By

Comments