【发布时间】:2015-05-09 02:18:00
【问题描述】:
如何在 CMS 布局中加载 Magento 静态块的内容?
我的目标是加载静态块 {{block type="cms/block" block_id="menu_about"}} 里面的布局,找不到如何做到这一点谁能帮助我?谢谢!
<!DOCTYPE html>
<html lang="en">
<head>
<?php echo $this->getChildHtml('head') ?>
</head>
<body<?php echo $this->getBodyClass() ? ' class="' . $this->getBodyClass() . '"' : '' ?>>
<div class="wrapper">
STATIC LEFT CMS
<div class="wrapper_header">
<?php echo $this->getChildHtml('global_messages') ?>
<?php echo $this->getChildHtml('header') ?>
</div>
<div class="container">
<div class="menu_left col-lg-4 col-md-4">
{{block type="cms/block" block_id="menu_about"}}
</div>
<div class="col-lg-8 col-md-8">
<?php echo $this->getChildHtml('content') ?>
</div>
</div>
</div>
</body>
</html>
【问题讨论】:
标签: magento layout content-management-system static-block