İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
5171 Görünümler

Hi everyone!   

I'm having a field to store website link. I need to print that field in qweb and also to open a url link in new tab when click on it. 

How must i do it! Kindly help me here!

Avatar
Vazgeç
En İyi Yanıt

Hi,

Try the following

static: < a href="your_link">Display Text
dynamic: < a t-attf-href="your_link">Display Text
using target="_blank" inside the anchor tag helps to open the link in new tab

Regards

Avatar
Vazgeç
Üretici

Thank you

En İyi Yanıt

you can use anchor tag of HTML : < a t-attf-href = " # {line.product_template_id.e_link_full}" > Text to display</a>

Avatar
Vazgeç
Üretici

Thanks!

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Tem 23
6368
1
Haz 23
4363
1
Nis 23
5072
1
Kas 22
3781
1
Eki 21
12153