Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
5180 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter

Thank you

Bedste svar

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

Avatar
Kassér
Forfatter

Thanks!

Related Posts Besvarelser Visninger Aktivitet
2
jul. 23
6377
1
jun. 23
4366
1
apr. 23
5076
1
nov. 22
3788
1
okt. 21
12158