CA Service Management

  • 1.  12.6 Changing Banner Image Size

    Posted Nov 21, 2012 05:57 PM
    Hello,

    This article details how to change the company banner for non-login pages, but does anyone know how to resize the image? The default allocated width and height is very small.

    https://comm.support.ca.com/?legacyid=TEC502605

    Thanks
    Stuart


  • 2.  RE: 12.6 Changing Banner Image Size

    Posted Nov 21, 2012 06:11 PM
    Hi Stuart,

    (Silly question time).

    What happens if you just make the image file a bit bigger?

    Thanks, Kyle_R.


  • 3.  RE: 12.6 Changing Banner Image Size

    Posted Nov 21, 2012 07:01 PM
    Hi Kyle,

    No it resizes it to the height and width of the original circleca.png file. Its width and height must be set to fixed values somewhere. I'm just having trouble finding where that is.


  • 4.  RE: 12.6 Changing Banner Image Size
    Best Answer

    Posted Nov 25, 2012 06:36 PM

    stuart.matthews wrote:

    Hi Kyle,

    No it resizes it to the height and width of the original circleca.png file. Its width and height must be set to fixed values somewhere. I'm just having trouble finding where that is.
    Hello Stuart,

    Okay. I've done some digging as I thought the question may have come up before, and it has.

    Changing the size of the cricleca.png logo file is not supported. The advice given in a prior issue is:

    - - -
    We do not advise to change the picture sizes at all.
    Doing this may break other functions. The SDM page layout (frames; available lines; different browsers, print function and so on) depend on available screenspace.- - -

    However, the team experimented at the time anyway by modifying sitemods.js and adding height and width language to the frames, but were not successful in making a change. The changes all had adverse consequences on the display.

    Here are some pointers if you wish to do further research and see if you can succeed where others have failed (Or if someone else can chime in who has done this before, that would be good too!).


    - - - From an SDM 12.5 issue:
    A js function is called throughout forms for displaying the logo. For example from menu_tab_dflt.htmpl:

    document.writeln(generate_logo_product_name_html());

    This function takes the image "circleca.png" and places it to the left of some other specified image or formatted HTML text --- which by default is "CA Service Desk"

    As an idea, it may be possible to override this function.
    - - -


    If you have a look at the above function, you'll see that there is size information.

    - - - Extract from SDM 12.5.
    // Generate the HTML code to display the CA logo and Product Name.
    // If the user is assigned to a Tenant that has a logo, use the Tenant's
    logo instead.
    function generate_logo_product_name_html ()
    {                                                                      
    if ( typeof ahdtop != "object" || ahdtop == null )
    ahdtop = get_ahdtop();

    var lpn_html = '<table cellspacing="0" cellpadding="0"
    border="0"><tr>';

    if ( typeof ahdframe == "object" && ahdframe != null &&
    typeof ahdframe.argTenantLogo == "string" &&
    ahdframe.argTenantLogo.length > 0 )
    lpn_html += '<td ><img id=logoImg src=' + ahdframe.argTenantLogo +
    ' height=38 alt="' + ahdframe.argTenantLogoAlt +
    '"></td>';
    else if ( typeof ahdtop.cfgMultiTenancy == "string" &&
    ahdtop.cfgMultiTenancy != "off" &&
    typeof ahdtop.cstTenantLogo == "string" &&
    ahdtop.cstTenantLogo.length > 0 )
    lpn_html += '<td ><img id=logoImg src=' + ahdtop.cstTenantLogo +
    ' height=38 alt="' + ahdtop.cstTenantLogoAlt +
    '"></td>';
    else
    lpn_html += '<td class=r5_CA_circle_logo_left><img id=logoImg
    src=' +
    ahdtop.usdImg["circleca"] + ' height=38
    alt="CA"></td>';


    lpn_html += '<td><span class=r5_product_name><nobr>' +
    ahdtop.cfgProductName +
    '</nobr></span></td></tr></table>';

    return lpn_html;

    - - -


    While not the answer you were looking for, I hope the above helps.

    Thanks, Kyle_R.


  • 5.  RE: 12.6 Changing Banner Image Size

    Posted Nov 25, 2012 08:46 PM
    Thanks heaps for that info Kyle, perhaps I'll just convice them to just keep the CA logo :)


  • 6.  RE: 12.6 Changing Banner Image Size

    Posted Nov 26, 2012 01:58 AM
    Hi Kyle & Stuart,

    Changing the size of the OOTB original circleca.png file is not supported. However I have found that using a custom logo to replace the circleca.png and placing it in "$NX_ROOT\site\mods\www\wwwroot\img" does the job. This also requires that your custom logo MUST be the more or less the same size as the original circleca.png, otherwise it does not display properly. I normally use Microsoft Office Picture Manager to resize my custom logo and that works out fine for me. Ofcouse there are other tools you can use to resize the image.

    Good luck :wink:

    Regards,
    Brian