Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5172 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

Thank you

Risposta migliore

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

Avatar
Abbandona
Autore

Thanks!

Post correlati Risposte Visualizzazioni Attività
2
lug 23
6368
1
giu 23
4363
1
apr 23
5072
1
nov 22
3781
1
ott 21
12153