跳至內容
選單
此問題已被標幟
2 回覆
5191 瀏覽次數

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
7月 23
6399
1
6月 23
4379
1
4月 23
5086
1
11月 22
3800
1
10月 21
12165