تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5174 أدوات العرض

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!

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

Thank you

أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

Thanks!

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يوليو 23
6369
1
يونيو 23
4363
1
أبريل 23
5072
1
نوفمبر 22
3782
1
أكتوبر 21
12154