网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的考试资料:

 

标题 如何修改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
随便看

 

在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/19 18:19:00