This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 6 - Pages: 1 - Last Post: 8 Feb 21, 20:42 Last Post By: JeffTucker
al-j

Posts: 72
Registered: 28-May-2012
Path to res folder
Posted: 8 Feb 21, 08:15
 
  Click to reply to this thread Reply
I am creating a page using the "Empty Page" template in the Projector skin. I want to use the image yoheader4.jpg which is located in my res folder (located at

(C:\Users\al\OneDrive\Documents\My Albums\My California\res) on my computer.

I can't find the proper path (Img src="?????") that will display the image.

Thanx
Al-J
Laza

Posts: 1,823
Registered: 6-Sep-2005
Re: Path to res folder
Posted: 8 Feb 21, 08:28   in response to: al-j in response to: al-j
 
  Click to reply to this thread Reply
Use src="${resPath}/yoheader4.jpg"
al-j

Posts: 72
Registered: 28-May-2012
Re: Path to res folder
Posted: 8 Feb 21, 09:08   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Thanks for your quick reply - This is the path I pasted, and it does not work.

<img src="${C:\Users\al\OneDrive\Documents\My%20Albums\My%20California\res}\yoheader4.jpg">

I added the "%20" to fill in the spaces. Is the \ correct or should they be / ?

Al-J

Edited by: al-j on 08-Feb-2021 00:10
Laza

Posts: 1,823
Registered: 6-Sep-2005
Re: Path to res folder
Posted: 8 Feb 21, 09:33   in response to: al-j in response to: al-j
 
  Click to reply to this thread Reply
And why didn't you try what I suggested? The Windows path doesn't work under Java.
JeffTucker

Posts: 8,208
Registered: 31-Jan-2006
Re: Path to res folder
Posted: 8 Feb 21, 13:30   in response to: al-j in response to: al-j
 
  Click to reply to this thread Reply
al-j wrote:
This is the path I pasted, and it does not work.

Don't second guess this. Enter exactly what you see here. Copy and paste it. Don't replace any of the characters with something else:
<img src="${resPath}/yoheader4.jpg" alt="">
al-j

Posts: 72
Registered: 28-May-2012
Re: Path to res folder Solved
Posted: 8 Feb 21, 17:39   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
When all else fails, maybe I should just follow your instructions. - Thank you both for your help.

Al-J
JeffTucker

Posts: 8,208
Registered: 31-Jan-2006
Re: Path to res folder Solved
Posted: 8 Feb 21, 20:42   in response to: al-j in response to: al-j
 
  Click to reply to this thread Reply
At this stage of the game, we have a lot of experience with users who overthink things. It seems to go with the territory.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums