on 07-29-2010 6:51 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks to both
Added logo in the masthead successfully
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.