Clarity

  • 1.  Custom image gif/png in Clarity Custom Html email code

    Posted Nov 27, 2016 02:56 AM

    I need to use some custom image png/gif for my custom html email code.I put my image in @webroot/ui/evolution2/images but these images are not showing in my email where as if I point to eMailLog.gif I can see that in my custom html email in outlook.

     

    like myclarityurl/ui/evolution2/image/mynewimage.gif is not showing but

    myclarityurl/ui/evolution2/image/eMailLogo.gif is showing in my email.

     

    So when I can access eMailLogo.gif then why cannot access any other image in same folder.

     

    Note: I tried to access new image in browser directly also but it gives me HTTP 403 error  and when I login to Clarity and then put the image path on browser I can see the image on browser whereas  I can directly access the eMailLogo.gif in my browser without login.



  • 2.  Re: Custom image gif/png in Clarity Custom Html email code

    Broadcom Employee
    Posted Nov 27, 2016 03:01 AM

    Hi Abdul,

     

    You cannot place any custom files under the webroot folder, we have stopped this in order to make the application secure. Please see the reference thread

     

    Issue with Custom SSO Logout page in V14.2 

     

    Also I understand you need to have your own logo in the notification email, it is not a feature at this point and I would request you to vote for the below ideas to that it is incorporated in the product. 

     

    Change the "CA Clarity PPM" header displayed in notifications since 13.2 

     

    Regards
    Suman Pramanik 



  • 3.  Re: Custom image gif/png in Clarity Custom Html email code

    Broadcom Employee
    Posted Nov 27, 2016 03:03 AM

    However you can still do it but it will be termed as customization 

     

    To change Header and Footer texts :

     

    The messages for "'CA Clarity " PPM' and for 'Copyright 2014 CA Technologies. All rights reserved.' are included in :

    %CLARITY_HOME%\resource\messages_xx.properties (xx is for all languages)
    and
    %CLARITY_HOME%\resource\messages.properties

    Change: %CLARITY_HOME%\resource\messages_xx.properties (for all languages) and also change messages.properties union.ppm=CA Clarity™ PPMunion.copyRight=Copyright \u00A9 2014 CA Technologies. All rights reserved.

     

    To change CA logo: Logo is in path: %CLARITY_HOME%\webroot\ui\evolution2\images\eMailLogo.gif

     

    Hope this helps you.

     

    Regards
    Suman Pramanik 



  • 4.  Re: Custom image gif/png in Clarity Custom Html email code

    Posted Nov 27, 2016 06:05 AM

    Hi Suman,

    Thanks for your prompt response. My requirement is not to modify the Clarity Action Item or Job Notifications but to have an image in the custom Html email which I am generating through gel:email tag.

    Someone mentioned in link https://communities.ca.com/message/104947170 that its possible to have custom image file and access that in Gel but that is not working for me.

    Changing eMailLogo.gif will not suffice my need as this logo has been used for all my Clarity notifications and my need is to have new image file for custom email.



  • 5.  Re: Custom image gif/png in Clarity Custom Html email code

    Posted Nov 27, 2016 10:54 AM

    Hello

    Have You check the right on the server for New image ? clarity has the right to access to this file ? 

    Olivier 



  • 6.  Re: Custom image gif/png in Clarity Custom Html email code

    Posted Nov 30, 2016 03:13 AM

    I checked on my custom image by RightClick->properties->security and it looks same as of Clarity eMailLogo.gif.So  think my custom image is having same rights as eMailLogo.gif from CA. I guess there is some control now to access any custom image from server as mentioned by Suman.



  • 7.  Re: Custom image gif/png in Clarity Custom Html email code

    Broadcom Employee
    Posted Nov 30, 2016 04:47 AM

    However you can use the encoded image approach, you cannot keep any images which doesn't come default by PPM 



  • 8.  Re: Custom image gif/png in Clarity Custom Html email code

    Posted Nov 27, 2016 04:39 PM

    Instead of the image tag src attribute pointing to a URL, supply the image as a base64 encoded string.

     

    <img alt="TheImage" src="data:image/jpeg;base64,"Insert encode string" />

     

    V/r,

    Gene