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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1603 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