我正在为Oxid E-shop制作新的插件。在我的元数据文件中,描述,标题,徽标完美地工作,我可以在后端看到插件,但是当我激活插件时,前端没有任何更改。块不会被覆盖。无法覆盖OXID中的smarty块eShop
/modules/myModule/metadata.php
'blocks' => array(
array(
'template' => 'layout/footer.tpl',
'block' => 'footer_main',
'file' => '/views/blocks/layout/footer.tpl'
)
我在页脚只是简单的例子,现在。
/modules/myModule/views/blocks/layout/footer.tpl
[{block name="footer_main"}]
<div class="footer-base">Schuberth test !</div>
[{/block}]
模板的位置应该被改写:/application/views/azure/tpl/layout/footer.tpl
感谢提到''oxtplblocks'',我发现模块的ID太长 –