Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2422 Näkymät

I've been trying to replace the image from Odoo Website sliders that are accessed through localhost:8069/slides. But it won't still displayed. Did I missed some import?

I inherited the website_slides.courses_home template with class s_banner and tried to change the background-image with my own svg but the background is just a black after I replaced it using XPath. Any idea? Thanks in advance



Log: 2023-09-20 00:19:52,247 21098 INFO o14-custom_db werkzeug: 127.0.0.1 - - [20/Sep/2023 00:19:52] "GET /custom_addons/custom_module/static/src/img/banner_dupli.svg HTTP/1.1" 404 - 231 0.095 0.542

Avatar
Hylkää
Paras vastaus

Your logs tell you that it can't find the SVG file, hence the 404. I suspect that you have to remove the /custom_addons​ from the path. But you can easily test this by checking the url: localhost:8069/custom_module/static/src/img/banner_dupli.svg​. If the SVG is displayed correctly, you know the path is correct and you should no longer get a 404 error.

I hope this helps!

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
maalisk. 25
1938
1
jouluk. 24
1770
0
elok. 22
3010
2
kesäk. 22
2445
1
huhtik. 22
1551