我正在爲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太長 –