Monday, March 6, 2017

Create modal dialog popup for link in ItemStyle.xsl

To create a modal dialog popup in a Content Query Web Part, edit the ItemStyle.xsl file and replace the anchor tag with the following in the template selected:

<a onclick="javascript:SP.UI.ModalDialog.ShowPopupDialog('{$SafeLinkUrl}'); return false;" title="{@LinkToolTip}">


No comments: