Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3162 Visualizações

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?
Avatar
Cancelar
Melhor resposta

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 

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
nov. 23
3245
0
abr. 21
2431
1
mar. 25
2460
0
ago. 22
3497
1
ago. 21
2893