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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

loop if image exists?


Go to End


10 Posts   4073 Views

Avatar
kinglozzer

Community Member, 187 Posts

20 February 2013 at 10:06pm

Hi Nick,

Inside the Photos control, you don't need to prepend $Photos, you can just use $URL, $SetWidth(x) etc. You have to use $Up to take it out of the 'photos' scope, so it knows to not try to get the 'Make' of the photo.

Loz

Avatar
nicknick

Community Member, 15 Posts

21 February 2013 at 10:26am

Fan Bloody Tastic!!
thanks again for that, i can see that im going to enjoy this new language, it might have been better if i had started of a bit simpler but so far it does mostly make some kind of sense so i will keep plodding on and see where it takes me.
Thanks again for the Help.

Go to Top