Add link in service banner

gomathyshankar
Tera Contributor

Hi,

I have to add a link in banner to navigate in service -now.I have tried but it is not working.

find_real_file.png

6 REPLIES 6

Rajesh Mushke
Mega Sage
Mega Sage

Hello Gomathyshankar Selvakumar,





Banner logo link



Properties are available to control the URL and target frame used when clicking the banner logo.


  • glide.banner.image.url: URL used when clicking the banner image
  • glide.banner.image.url_target: Target frame used when clicking the banner image
    • gsft_main for the main frame
    • _top to replace the current browser window
    • _blank for a new window/tab


Here you go.


Banner logo link




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Hi,



I checked in the glide.product.description





find_real_file.png


but in the it is displaying Service Management.


find_real_file.png


Please Refer :



Top Navigation Buttons (Geneva) — ServiceNow Elite




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

I am going to work on this more when I have time.



Capture.PNG



UI Script: Navigation Bar Buttons


Script:


document.addEventListener("DOMContentLoaded", function(event) {


  var theLinkElement = getTopWindow().document.querySelector("a[class~=headerlink]");


  //Only insert if the user has roles and the links are not on the page already


  if(g_user.hasRoles() && jQuery(theLinkElement).length == 0){


  var theStyle = "float: right; padding:0px;font-size: 1.3rem; margin: 8px 0px 0px 0px;" +


  "width: auto; height: 25px; text-align: center;" +


  "color: white";



  //Common styling using div & spans


  var linkDivOpen = '<div><span style="' + theStyle + '">';


  var linkDivClose = "</span></div>";



  //Links


  var essLink = "<a target='_blank' href='/ess' id='essLink' style='color: inherit;text-decoration: none;'><span class='btn btn-icon icon-cart' style='font-size: 20px;' />Self Service</a>"; //);


  var sneLink = "<a target='_blank' href='http://www.servicenowelite.com' id='sneLink' style='color: inherit;text-decoration: none;'><span class='btn btn-icon icon-lightbulb' style='font-size: 20px;' />ServiceNow Elite</a>"; //);



  var theHeaderElement = getTopWindow().document.querySelector(".nav.navbar-right");


  //Insert the links


  jQuery(linkDivOpen + essLink + linkDivClose).insertAfter(theHeaderElement);


  jQuery(linkDivOpen + sneLink + linkDivClose).insertAfter(theHeaderElement);


  }


});





Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke