我的 PnP 现代搜索结果中有以下设置 PnP 现代搜索 (v4):
我为一列添加了此公式,以在新选项卡中打开项目详细信息:
<a
href="{{slot item @root.slots.PreviewUrl}}"
data-interception="off"
target="_blank"
style="color: {{@root.theme.semanticColors.link}}"
>
{{slot item @root.slots.Destination}}
</a>
目前该链接将在新选项卡中打开,没有任何问题。但是如何强制链接在弹出窗口而不是新选项卡中打开?
希望你能得到你想要的
<a
href="javascript:void(0);"
onclick="window.open('{{slot item @root.slots.PreviewUrl}}', 'popupWindow', 'width=800,height=600,scrollbars=no,resizable=no');"
style="color: {{@root.theme.semanticColors.link}}"
>
{{slot item @root.slots.Destination}}
</a>