Jump to:

23575 Posts in 19402 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » loop if image exists?

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

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

Page: 1 2
Go to End
Author Topic: 1130 Views
  • kinglozzer
    Community Member
    146 Posts

    Re: loop if image exists? Link to this post

    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.


  • nicknick
    Community Member
    15 Posts

    Re: loop if image exists? Link to this post

    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.

Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.