如何在magento中查找页脚中的链接

如何在magento中查找页脚中的链接,magento,magento-1.7,Magento,Magento 1.7,我试图在magento网站的页脚中找到链接,但我很难找到phtml文件。我在page.xml文件中找到了块代码 <block type="page/template_links" name="footer_links" as="footer_links" after="footer.newsletter" template="page/template/links.phtml"/> 但是我在那里看不到任何模板文件夹 有人能帮我吗,如何找到这个文件,我甚至试着打开模板路径提示,但没有

我试图在magento网站的页脚中找到链接,但我很难找到phtml文件。我在page.xml文件中找到了块代码

<block type="page/template_links" name="footer_links" as="footer_links" after="footer.newsletter" template="page/template/links.phtml"/>
但是我在那里看不到任何模板文件夹

有人能帮我吗,如何找到这个文件,我甚至试着打开模板路径提示,但没有帮助。提前感谢您的帮助。

尝试以下路径:

/app/design/frontend/base/default/template/page/template

希望对您有所帮助…

这可能会让人困惑,我的图片页脚链接是通过以下两种方式之一生成的:

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>
<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>
<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>

联系我们
联络
联系我们
真的
您可以添加更多类似的内容,或通过注释删除每个链接

它们是使用在下面的配置中启用的标准模板文件(template/page/template/links.phtml)生成的。上面的每个链接定义(在不同的xml配置中有多个)将使用下面的模板来显示实际的HTML链接

page.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>
<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>
<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>

2)您会发现一个名为footer\u links的静态块,其中还包含一些链接,这是为了让您更容易添加自己的链接。它们在内部启用

cms.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>
<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>
<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>

页脚链接
这两种方法都用于生成页脚链接,这可能会造成混淆:)

要从页脚链接中删除“订单和退货”,我必须从sales.xml文件中注释掉该块

  <!-- <default>
       <reference name = "footer_links">
       <block type="sales/guest_links" name="return_link"/>
       <action method="addlinkBlock">
       <blockName>return_link</blockName>
       </action>
       </reference>
       </default>
   -->

您是否尝试将
links.phtml
添加到
app/design/frontend/website.com/default/template/page/
??我猜它可能会恢复到默认值,因为它不存在。不,我在默认值中也找不到它,链接已经在那里了,我只需要找到它并在上面做些更改