콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5162 화면

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
6362
1
6월 23
4358
1
4월 23
5072
1
11월 22
3779
1
10월 21
12144