Hello.
How do I disable or edit useful link block.
It’s between position 8 and 10? so is it 9?
How come it’s not on Module Position Guide?
I was playing with cms block for a few hours and found it’s not there.
I am so disappointed.
Can anyone help on this?
2 answers
Hi Steveyoon03,
These links are default template links retrieved from magento core. You can check out this file to know how this block was defined: \app\design\frontend\default\jm_hagatemplate\page template\footerlinks.phtml
In order to disable it, you can remove this file. In case you want to edit each link, you need to go to appropriate xml file which defines these links
For example, with Site Map link, go to file: catalog.xml
Code:
<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>
Search Terms | Advanced Search >>> catalogsearch.xml
Code:
<reference name=”footer_links”> <action method=”addLink” translate=”label title” module=”catalogsearch” ifconfig=”catalog/seo/search_terms”> <label>Search Terms</label> <url helper=”catalogsearch/getSearchTermUrl” /> <title>Search Terms</title> </action> <action method=”addLink” translate=”label title” module=”catalogsearch”> <label>Advanced Search</label> <url helper=”catalogsearch/getAdvancedSearchUrl” /> <title>Advanced Search</title> </action> </reference>
Contact Us >>> contacts.xml
Code:
<reference name=”footer_links”> <action method=”addLink” translate=”label title” module=”contacts” ifconfig=”contacts/contacts/enabled”><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare></action> </reference>
Once done, remember to flush magento cache.
Regards
Thank you so much!
This question is now closed