콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

how to create an inner content snippet in odoo 16?

아바타
취소
작성자

I am not talking about snippets I am talking about inner content snippets like blockquote, alert, and rating snippet available on odoo website I wanted to create the same as there inner content snippets.

베스트 답변

Hi Usama Gull,

You should check check out data-drop-in and data-drop-near attributes of snippet options. I believe those are the attributes that let's you choose where the snippet should be added. 

I'm adding a code snippet for reference. 

<div data-selector=".o_mega_menu .nav > .nav-link"

data-drop-in=".o_mega_menu nav"

data-drop-near=".o_mega_menu .nav-link"/>

Hope it helps.

아바타
취소
베스트 답변

Hi,

Try refer the following

<template id="template_id" inherit_id="website.snippets">


    <xpath expr="//div[@id='snippet_content']/div[hasclass('o_panel_body')]" position="inside">


        <t t-snippet="module_name.snippet_name"


           t-thumbnail=""/>


    </xpath>


</template>

https://www.cybrosys.com/blog/how-to-create-a-snippet-in-odoo-15-erp

Regards

아바타
취소
작성자

I am not talking about snippets I am talking about inner content snippets like blockquote, alert, and rating snippet available on odoo website I wanted to create the same as there inner content snippets.

관련 게시물 답글 화면 활동
1
4월 25
1521
Odoo App 해결 완료
1
11월 23
2105
0
5월 24
1836
0
9월 23
2748
0
9월 23
2404