Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Image controls


Go to End


2 Posts   1508 Views

Avatar
NickJacobs

Community Member, 148 Posts

15 October 2008 at 11:21am

Hi, I am trying to output a list of images (to preload in a jquery function) and I only want the image path.

using the standard ss output format I also get the alt="".
ie:
$Image.ItemImage gives me <img src="/assets/Uploads/_resampled/ItemImage-20030711-1.jpg" alt="" >

how do I reference just the path?

Avatar
(deleted)

Community Member, 473 Posts

15 October 2008 at 11:40am

$Image.URL