17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1723 Views |
-
Show The Image Filename & Path Only NOT <img src="

3 May 2008 at 2:30am Last edited: 3 May 2008 2:31am
Hi there.
Problem: I add an image field to the backend and currently displaying
the image using..$Photo2.SetWidth(180)
This prints out <img src="uploads/blahblah.jpg"> and shows the image fine
however.. I only want to echo the filename and location example: uploads/blahblah.jpgI intend to then load this image into flash. How could I get it to simply echo the filename?
I realise I need to somehow grab it from the file table and refence the Photo2 field but not sure how to execute this within the structure.thanks in advance : )
Sefton
-
Re: Show The Image Filename & Path Only NOT <img src="

3 May 2008 at 6:35pm
You can call the URL method on the Image. Try $Photo2.SetWidth(180).URL Not sure if you can chain it like that, you probably can't
. Maybe then try <% control Photo2.SetWidth(180) %>$URL<% end_control %>
| 1723 Views | ||
|
Page:
1
|
Go to Top |


