Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3241 มุมมอง

I am working on preparing a website template which Is expected to be edited by various users (personalised). I load database data using the t-esc or t-field tags and the data is properly loading on the page.

My issue is that I have a large html block with a background image which I can edit using Odoo's website builder. If I put a div inside this <section/> that contains any t-esc or t-if or t-field the page renders perfectly however I can no longer modify the background image.


Is there any way around this? Currently I have to remove the child block, save it. Modify the image. And then put the child block back. But that is a hassle and not something that will be very user friendly.


Thanks ! 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

use the attribute contenteditable and also t-att-contenteditable if any conditions to satisfy. value should be boolean.

<div class="text-info oe_subdescription" contenteditable="false">
<div itemprop="description" t-field="product.description_sale"></div>
</div>
อวตาร
ละทิ้ง
ผู้เขียน

Thanks for your input Hilar. I appreciate your assistance. However this does not enable editing the background image of the parent block.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 24
2333
1
ม.ค. 19
8775
0
ธ.ค. 23
2393
1
ส.ค. 21
2971
3
ม.ค. 25
14877