
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2016 08:02 AM
I am looking for a way to create a custom Icon Link widget to direct the user to a URL, but to open that URL in a new window instead of the portal page.
I've made a copy of the baseline Icon Link widget, but am unsure as to how I might change the behavior for the URL link.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2016 08:55 AM
Hi Steven,
You may have resolved this yourself by now but the OTB (Helsinki Patch 7, not sure about previous versions) "Icon Link" widget accepts an option called "target" where you can specify how you want the link to behave. Locate your widget instance in the widget instances list and then add an additional option for target. E.g.
{
"target": {
"value":"_blank"
},
"link_template": {
"value": "Circle Icon",
"displayValue": "Circle Icon"
}
}
Thanks,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2016 08:22 AM
Hi Steven,
Use window.open() method to acheive this..
Please check this link as well:
Hope this will help you.
Thanks,
Devi
PS: Hit like, Helpful or Correct depending on the impact of the response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2016 08:55 AM
Hi Steven,
You may have resolved this yourself by now but the OTB (Helsinki Patch 7, not sure about previous versions) "Icon Link" widget accepts an option called "target" where you can specify how you want the link to behave. Locate your widget instance in the widget instances list and then add an additional option for target. E.g.
{
"target": {
"value":"_blank"
},
"link_template": {
"value": "Circle Icon",
"displayValue": "Circle Icon"
}
}
Thanks,
Mark