doushajian2018 2013-01-18 11:54
浏览 22

无法在Magento 1.4中显示面包屑块

I am using a custom theme. I cannot show breadcrumbs ANYWHERE despite file breadcrumbs.phtml being where it's supposed to be and calling the getChildHtml('breadcrumbs') method.

On the other hand, everything works fine with for example footer.phtml.

Files footer.phtml and breadcrumbs.phtml are stored under the same location.

If I put the following code in 1column.phtml:

<?php echo $this->getChildHtml('breadcrumbs') ?>
<?php echo $this->getChildHtml('footer') ?>

...only the second line works. I get no error or anything, only the fact that breadcrumbs don't appear. I have put some random echoes in breadcrumbs.phtml to make sure I'll notice the block.

I have seriously ran out of ideas here. The cache is disabled by the way.

  • 写回答

1条回答 默认 最新

  • dshkmamau65777662 2013-01-18 14:47
    关注

    Not sure if you all ready did this, but did you checkout your layout file (frontend\default[YOUR TEAM]\layout\page.xml)

    The page.xml should contain the following lines and its best that they are a child of the default page.

    <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
    

    If it's there, search for 1column in page.xml and see if the breadcrumbs are not disabled.

    评论

报告相同问题?

悬赏问题

  • ¥15 单纯型python实现编译报错
  • ¥15 c++2013读写oracle
  • ¥15 c++ gmssl sm2验签demo
  • ¥15 关于模的完全剩余系(关键词-数学方法)
  • ¥15 有没有人懂这个博图程序怎么写,还要跟SFB连接,真的不会,求帮助
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
  • ¥15 is not in the mmseg::model registry。报错,模型注册表找不到自定义模块。
  • ¥15 安装quartus II18.1时弹出此error,怎么解决?
  • ¥15 keil官网下载psn序列号在哪
  • ¥15 想用adb命令做一个通话软件,播放录音