Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
5164 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

Thank you

Meilleure réponse

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

Avatar
Ignorer
Auteur

Thanks!

Publications associées Réponses Vues Activité
2
juil. 23
6363
1
juin 23
4358
1
avr. 23
5072
1
nov. 22
3779
1
oct. 21
12146