Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5198 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

Thank you

Nejlepší odpověď

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

Avatar
Zrušit
Autor

Thanks!

Related Posts Odpovědi Zobrazení Aktivita
2
čvc 23
6439
1
čvn 23
4385
1
dub 23
5114
1
lis 22
3806
1
říj 21
12167