Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
5168 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

Thank you

Beste Antwort

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

Avatar
Verwerfen
Autor

Thanks!

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Juli 23
6363
1
Juni 23
4359
1
Apr. 23
5072
1
Nov. 22
3781
1
Okt. 21
12149