- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 11:34 AM
I know that there's not an option for setting a Menu Item to open in a new window, so I'm exploring options for opening any external URLs in a new window. This is primarily around the Header Menu, though it would be applicable to any Menu widget that's used in the Service Portal. Is there something easy that I'm missing?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 12:31 AM
Hi Jason,
there is not OOB way i could find.
follow below steps.
1)on menu item form create a new field(type true/false). like shown in below image.
check the new window(custom field) checkbox for links that u want to open in new window.
2) go to Angular ng-template(sp_ng_template.list) table. open record with id "menuTemplate".
replace first line with below two lines.
<a ng-if="item.items.length == 0 && !item.scriptedItems && !item.u_new_window" ng-href="{{item.href}}">{{ item.label }}</a>
<a ng-if="item.items.length == 0 && !item.scriptedItems && item.u_new_window" ng-href="{{item.href}}" target="_blank">{{ item.label }}</a>
like shown in below image.
let me know if any issues.
(please mark helpful/correct/like based on impact)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 12:31 AM
Hi Jason,
there is not OOB way i could find.
follow below steps.
1)on menu item form create a new field(type true/false). like shown in below image.
check the new window(custom field) checkbox for links that u want to open in new window.
2) go to Angular ng-template(sp_ng_template.list) table. open record with id "menuTemplate".
replace first line with below two lines.
<a ng-if="item.items.length == 0 && !item.scriptedItems && !item.u_new_window" ng-href="{{item.href}}">{{ item.label }}</a>
<a ng-if="item.items.length == 0 && !item.scriptedItems && item.u_new_window" ng-href="{{item.href}}" target="_blank">{{ item.label }}</a>
like shown in below image.
let me know if any issues.
(please mark helpful/correct/like based on impact)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 09:33 AM
Awesome, thank you! I did not know we could access the templates, this is great!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2020 06:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2020 03:25 PM
this did not work