Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
5189 Представления

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!

Related Posts Ответы Просмотры Активность
2
июл. 23
6397
1
июн. 23
4378
1
апр. 23
5086
1
нояб. 22
3799
1
окт. 21
12164