2013-02-18 37 views
1

我正在尝试在magento网站的页脚中找到链接,但我无法找到phtml文件。我发现,在page.xml块代码文件如何在页脚中找到magento中的链接

<block type="page/template_links" name="footer_links" as="footer_links" after="footer.newsletter" template="page/template/links.phtml"/> 

但我无法找到该文件links.phtml文件,我检查了当前模板

website/app/design/frontend/website.com/default/template/page/ 

,但我看不出有任何模板文件夹存在。

任何人都可以帮我请这个,如何找到该文件,我甚至尝试打开模板路径提示它没有帮助。提前感谢您的帮助。

+0

你尝试过** **添加一个'links.phtml' **的**'应用程序/设计/前端/ website.com/defaul注释掉块T /模板/页/'?它可能只是恢复到默认/默认是我的猜测,因为它不存在。 – Zak 2013-02-18 22:58:07

+0

nope我找不到它在默认/默认也是,并且链接已经在那里我只需要找到它并改变它的东西就可以了 – jarus 2013-02-18 23:09:50

回答

0

试试这个路径:

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

希望帮助你...

1

它可以是混乱,页脚链接我的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> 

两种方法用于产生可能会造成混淆:)

0

从页脚链接中删除“命令,并返回”页脚链接启用我从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> 
    --> 
相关问题