cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a new image In Masthead

MaheshChandra
Active Contributor
0 Kudos

HI all,

i want to add a new image in the masthead par file. note its like logo in the right side of standard masthead i want to add another image in extreme left. i changed the par file and i am getting the image format but not image. i think the image path is wrong.

how to call a image

i placed the image in Dist\images folder and in code url="/dist/images/img.gif" and tried for /images/img.gif and /img.gif but no use

Need Your help regarding this

thanks & Regards

Mahesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

if you have the IPortalComponentRequest class object, get the image located in "Dist\images\" using:


String imagePath = request().getWebResourcePath() + "/images/img.gif";

Hope this helps,

Romano

Answers (2)

Answers (2)

MaheshChandra
Active Contributor
0 Kudos

thanks to both

Added logo in the masthead successfully

Former Member
0 Kudos

Hi Mahesh,

You can use "/irj/portalapps/<Name of Par File>/images/<name of image>.gif". I have used this way for the same requirement and its working fine for me. If there is still any problem then let me known.

Thanks,

Nishant Singh

MaheshChandra
Active Contributor
0 Kudos

Thanks Nishant

now i am getting the image, you solved my problem and some thing wrong with the width and height of the image.

i am working on it. you did the same customization in masthead then send me any document or help link regarding this

i will get back to you if i have any issue in this

Thanks& regards

mahesh

Former Member
0 Kudos

Hi Mahesh,

I am sorry that i am not having any documents for all these things. But if there is any issue i'll try to help you in that.

Thanks,

Nishant Singh