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

字號:


    下面教程是教你怎樣去修改magento的底部鏈接,包括 About Us, Customer Service ,Site Map ,Search Terms, Advanced Search, Contact Us ,RSS ,copyright notic 等等。
    1、關于我們和客戶服務(About Us | Customer Service)
    這兩個鏈接主要由 cms.xml 文件進行調用。
    修改這兩個鏈接的URL你可以去magento管理后臺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>
    修改其內容你需打開magento后臺CMS => Pages ,然后找到 About Us 和Customer Service 的CMS頁,打開進行編輯。
    2、網站地圖(Site Map)
    magento 的sitemap是由catalog.xml 文件進行調用的。
    <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、搜索條目和高級搜索(Search Terms | Advanced Search)
    這兩個是由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、聯系我們(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底部默認的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
    文件進行編輯。
    7、修改copyright notice
    也是修改footer.phtml文件
    /app/design/frontend/default/default/template/page/html/footer.phtml