它可以是混乱,页脚链接我的Magento两种方式之一生成:
1 )通过XML布局添加,这是如何添加站点地图链接等,例如:
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>
您可以添加更多类似这样的,或注释掉删除
他们正在使用的是启用了一个标准的模板文件(模板/网页/模板/ links.phtml)生成的每个环节配置如下。上面的每个链接定义(在不同的XML配置中有多个)将使用下面的模板来显示实际的HTML链接。
page.xml
<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
<!-- uncomment this to ditech them.. -->
<block type="page/template_links"
name="footer_links" as="footer_links"
template="page/template/links.phtml" />
</block>
2)你会发现一个名为footer_links静态块,还包括一些链接,这是为了让您更容易添加自己的链接。他们在里面
cms.xml
<reference name="footer">
<block type="cms/block" name="cms_footer_links" before="footer_links">
<!--
The content of this block is taken from the database by its block_id.
You can manage it in admin CMS -> Static Blocks
-->
<action method="setBlockId"><block_id>footer_links</block_id></action>
</block>
</reference>
两种方法用于产生可能会造成混淆:)
你尝试过** **添加一个'links.phtml' **的**'应用程序/设计/前端/ website.com/defaul注释掉块T /模板/页/'?它可能只是恢复到默认/默认是我的猜测,因为它不存在。 – Zak 2013-02-18 22:58:07
nope我找不到它在默认/默认也是,并且链接已经在那里我只需要找到它并改变它的东西就可以了 – jarus 2013-02-18 23:09:50