Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Odoo 12 - DMS Module - Directory
Re: "Translating" pictures in website breaks website editor - any workaround?
Re: "Translating" pictures in website breaks website editor - any workaround?
by
Data Dance s.r.o., Radovan Skolnik
Yes! That's exactly that option that made me feel stupid in the back of my head... Not optimal in my opinion but better than nothing. Thank you Julien. Best regards Radovan On utorok 19. decembra 2023 19:37:19 CET Julien Guenat wrote: > Hello, > > In Odoo 16 (and maybe before, didn't test) you have a "Visibility" > option on website building blocks (image, image-text ...) where you > can choose to make the block visible only for specific languages. > > If not available in your Odoo version I guess you could use some > t-if. > > Best regards, > > Julien > > Le 19.12.23 à 19:17, Radovan Skolnik a > écrit : > > > Hello everyone, > sorry for non-development question but this is really so specific I cannot > imagine anyone besides experts here would be able to answer. A client has a > website where on few pages there is a picture that needs to be different > for different language version (because it contains embedded text in that > language). The way we came out to deal with this is adding something like > <t t-set="image_url" t-value="url_of_the_picture_in_default_language"/> > before the image itself and then in the image itself something like <img > t-att-href="image_url"/> This way the URL value can be translated to other > languages. While it works as planned unfortunately it breaks the website > editor - some JS error appears and the component palette won't be loaded > :-( I have a stupid feeling I am missing some other obvious option. Any > ideas please? Best regards > Radovan Skolnik > > > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 [1] > Post to: mailto:contributors@odoo-community.org [2] > Unsubscribe: https://odoo-community.org/groups?unsubscribe [3] > > > > > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 [4] > Post to: mailto:contributors@odoo-community.org > Unsubscribe: https://odoo-community.org/groups?unsubscribe [5] > > > > [1] https://odoo-community.org/groups/contributors-15 > [2] mailto:contributors@odoo-community.org > [3] https://odoo-community.org/groups?unsubscribe > [4] https://odoo-community.org/groups/contributors-15 > [5] https://odoo-community.org/groups?unsubscribe
Reference
-
"Translating" pictures in website breaks website editor - any workaround?
byData Dance s.r.o., Radovan Skolnik-
Re: "Translating" pictures in website breaks website editor - any workaround?
byHolger Brunn -
Re: "Translating" pictures in website breaks website editor - any workaround?
byData Dance s.r.o., Radovan Skolnik -
Re: "Translating" pictures in website breaks website editor - any workaround?
byjulien
-