0
我想在管理区域添加通知,例如“最新消息”栏,但在其下。 我曾尝试使用AdminhtmlNotification模块,但仅向“最新消息”队列中添加新消息,并且如果我的消息不是最后一个消息,只会在网格中显示。Magento管理员通知
预先感谢您的帮助,
丹尼斯Rendler
我想在管理区域添加通知,例如“最新消息”栏,但在其下。 我曾尝试使用AdminhtmlNotification模块,但仅向“最新消息”队列中添加新消息,并且如果我的消息不是最后一个消息,只会在网格中显示。Magento管理员通知
预先感谢您的帮助,
丹尼斯Rendler
所有您需要做的是在adminhtml布局的通知处理程序中添加自己的块。
<?xml version="1.0"?>
<layout>
<default>
<reference name="notifications">
<block type="extension/adminhtml_notifications" name="extension_notifications" template="extension/notification.phtml"/>
</reference>
</default>
</layout>
然后创建和编辑文件的扩展名/ notification.phtml:
<?php if ($message = $this->getMessage()) : ?>
<div class="notification-global">Hello!</div>
<?php endif; ?>
欲了解更多信息,请检查这篇文章: https://www.openstream.ch/developer-blog/adding-magento-admin-notifications-to-your-extension/