在 Magento 中找不到页脚链接
Cant find footer links in Magento
我正在尝试更改 Magento 页面页脚中的链接。
在页脚中有以下 HTML:
<div class="col1 gapRight floatLeft">
<h2>Customer Service</h2>
<ul>
<li><a href="/index.php/about-magento-demo-store">About Us</a></li>
<li><a href="/index.php/customer-service">Customer Service</a></li>
<li class="last privacy"><a href="/index.php/privacy-policy-cookie-restriction-mode">Privacy Policy</a></li>
<li class="last privacy"><a href="/contact-us">Contact Us</a></li>
</ul>
<ul class="links">
<li class="first" ><a href="/index.php/catalog/seo_sitemap/category/" title="Site Map" >Site Map</a></li>
<li ><a href="/index.php/catalogsearch/term/popular/" title="Search Terms" >Search Terms</a></li>
<li ><a href="/index.php/catalogsearch/advanced/" title="Advanced Search" >Advanced Search</a></li>
<li ><a href="/index.php/sales/guest/form/" title="Orders and Returns" >Orders and Returns</a></li>
<li class=" last" ><a href="/index.php/contacts/" title="Contact Us" >Contact Us</a></li>
</ul>
</div>
第一个 ul
列表定义为名为 footer_links
的 CMS 静态块。
谁能告诉我在哪里可以找到第二个 ul
列表?
我已经在谷歌上搜索过了,但我一直被重新推荐回静态块。第二个 ul
列表绝对不是静态块(我已经删除了所有静态块,但这个列表仍然存在)。还能在哪里定义?
您的模板正在使用存储在 XML 文件中的核心页脚链接。
打开您的 Magento 文件夹,转到 app/design/frontend/。当您在模板文件夹中时,打开布局文件夹。如果它们不存在,您可能需要创建和覆盖。
站点地图
在 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><br>
搜索词和高级搜索
在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>
联系我们
在 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>
我正在尝试更改 Magento 页面页脚中的链接。
在页脚中有以下 HTML:
<div class="col1 gapRight floatLeft">
<h2>Customer Service</h2>
<ul>
<li><a href="/index.php/about-magento-demo-store">About Us</a></li>
<li><a href="/index.php/customer-service">Customer Service</a></li>
<li class="last privacy"><a href="/index.php/privacy-policy-cookie-restriction-mode">Privacy Policy</a></li>
<li class="last privacy"><a href="/contact-us">Contact Us</a></li>
</ul>
<ul class="links">
<li class="first" ><a href="/index.php/catalog/seo_sitemap/category/" title="Site Map" >Site Map</a></li>
<li ><a href="/index.php/catalogsearch/term/popular/" title="Search Terms" >Search Terms</a></li>
<li ><a href="/index.php/catalogsearch/advanced/" title="Advanced Search" >Advanced Search</a></li>
<li ><a href="/index.php/sales/guest/form/" title="Orders and Returns" >Orders and Returns</a></li>
<li class=" last" ><a href="/index.php/contacts/" title="Contact Us" >Contact Us</a></li>
</ul>
</div>
第一个 ul
列表定义为名为 footer_links
的 CMS 静态块。
谁能告诉我在哪里可以找到第二个 ul
列表?
我已经在谷歌上搜索过了,但我一直被重新推荐回静态块。第二个 ul
列表绝对不是静态块(我已经删除了所有静态块,但这个列表仍然存在)。还能在哪里定义?
您的模板正在使用存储在 XML 文件中的核心页脚链接。
打开您的 Magento 文件夹,转到 app/design/frontend/。当您在模板文件夹中时,打开布局文件夹。如果它们不存在,您可能需要创建和覆盖。
站点地图
在 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><br>
搜索词和高级搜索
在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>
联系我们
在 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>