Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1639 Lượt xem

I have written a template extension 

<template id="moduleA.custom_template" name="Custom Template" inherit_id="moduleB.template_id">
    <xpath expr="." position="inside">
        <div>hello</div>
    </xpath>
</template>

But this somehow inherits the base template for actions with id: 'base.action_view'...
I have added moduleB to the dependencies in moduleA

I have already managed to extend template 'moduleB.template_id' in another one of my modules. If I put this template in that module it just works.  

I don't see a difference in the modules as to why it shouldn't work, let alone inherit a different template than specified... 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 25
25392
1
thg 12 22
10270
1
thg 8 16
10287
0
thg 6 15
4772
4
thg 2 25
2045