Adding a web site link function by clicking the CA Logo

Document ID : KB000075121
Last Modified Date : 11/05/2018
Show Technical Document Details
Introduction:
When logging into Service Desk, there may be a need for the logo in the upper left to allow for an activation of a web link when the logo is accessed, ie in the location shown here in the red circle:
User-added image
Instructions:
To do this: 

NX_ROOT = SDM install directory 

- Copy the std_head.js file from NX_ROOT\bopcfg\www\wwwroot\scripts over to NX_ROOT\site\mods\www\wwwroot\scripts 

- Edit the std_head.js file in NX_ROOT\site\mods\www\wwwroot\scripts and locate this block of code (around line 4525, search for "circleca" in the file): 

lpn_html += '<td class="CA_logo"><img id="logoImg" src="' + 
ahdtop.usdImg["circleca"] + '" class="logo_img" alt="C A Technologies"></td>'; 

- Change the code so that it reads as 

lpn_html += '<td class="CA_logo"><A HREF="http://www.website.com" target="_blank"><img id="logoImg" src="' + 
ahdtop.usdImg["circleca"] + '" class="logo_img" alt="C A Technologies"></A></td>'; 

It is important to note the placement of the "<A>" and "</A>" anchor tags in the above code (in bold). Further, the specification of a "target" frame/window is advised as omitting this parameter from the "<A>" tag will result in the web page opening within the confines of the top banner frame of the SDM web page.