Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3226 Представления

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 

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
нояб. 23
3245
0
апр. 21
2503
1
мар. 25
2517
0
авг. 22
3568
1
авг. 21
2957