如何修改magento模板的底部鏈接

字號(hào):


    下面教程是教你怎樣去修改magento的底部鏈接,包括 about us, customer service ,site map ,search terms, advanced search, contact us ,rss ,copyright notic 等等。
    1、關(guān)于我們和客戶服務(wù)(about us | customer service)
    這兩個(gè)鏈接主要由 cms.xml 文件進(jìn)行調(diào)用。
    修改這兩個(gè)鏈接的url你可以去magento管理后臺(tái)cms=> static blocks =>footer links
    <li><a href=”{{store direct_url=”about-us”}}”>about us</a></li>
    <li><a href=”{{store direct_url=”customer-service”}}”>customer service</a></li>
    修改其內(nèi)容你需打開(kāi)magento后臺(tái)cms => pages ,然后找到 about us 和customer service 的cms頁(yè),打開(kāi)進(jìn)行編輯。
    2、網(wǎng)站地圖(site map)
    magento 的sitemap是由catalog.xml 文件進(jìn)行調(diào)用的。
    <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>
    3、搜索條目和高級(jí)搜索(search terms | advanced search)
    這兩個(gè)是由catalogsearch.xml 文件控制的
    <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>
    4、聯(lián)系我們(contact us)
    magento 的contact us 可修改contacts.xml 文件
    <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>
    5、rss
    找到 rss.xml文件
    <reference name=”footer_links”>
    <action method=”addlink” translate=”label title” module=”rss” ifconfig=”rss/config/active”><label>rss</label><url>rss</url><title>rss testing</title><prepare>true</prepare><urlparams/><position/><li/>
    <a>class=”link-feed”</a>
    </action>
    </reference>
    6、修改magento底部默認(rèn)的message
    report all bugs (ver. 1.2.1.2)© 2008 magento demo store. all rights reserved
    找到
    /app/design/frontend/default/default/template/page/html/footer.phtml
    文件進(jìn)行編輯。
    7、修改copyright notice
    也是修改footer.phtml文件
    /app/design/frontend/default/default/template/page/html/footer.phtml