跳至內容
選單
此問題已被標幟
1 回覆
3222 瀏覽次數

I want to add some content after video setting options in template 'wysiwyg.widgets.video', then I write the code in my custom module:

<t t-inherit="wysiwyg.widgets.video" t-inherit-mode="extension">
<xpath expr="//*[hasclass('o_video_dialog_options')]" position="after">
<div id="videoDragDrop">some content</div>
</xpath>
</t>

but it throw an error says that module "wysiwyg" not found, then i change the code to:
<t t-inherit="web_editor.wysiwyg.widgets.video" t-inherit-mode="extension">
<xpath expr="//*[hasclass('o_video_dialog_options')]" position="after">
<div id="videoDragDrop">some content</div>
</xpath>
</t>

after update module, there no error, but it doesn't appear, how can i make it work?
頭像
捨棄
最佳答案

Hello  harry,

Use this code

<t t-extend="wysiwyg.widgets.video">

        <t t-jquery=".o_video_dialog_options" t-operation="after">

            <div id="videoDragDrop">some content</div>

        </t>

    </t>

Thanks.

 

For more information Contact us:- https: //kanakinfosystems.com/odoo-development-services 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
11月 23
3245
0
4月 21
2502
1
3月 25
2513
0
8月 22
3565
1
8月 21
2952