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:

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

use $image as an image url? [SOLVED]

Go to End

3 Posts   2365 Views


Community Member, 15 Posts

18 February 2013 at 12:01pm

Hi all, i need a little help, i have a custom and i am including images from the db that are chosen in the admin section.

Now i want to use a lightbox script to show these in a light box
<div class="content">
<div class="gallery">
<ul class="images">
<li class="image"><a title="" rel= "$model" href="$photo1"> <img src="$Photo1.SetWidth(104)"></a></li>
any ideas how this can be done, i have tried escaping the "'s with \'s but still not working.
thanks in advance


Community Member, 473 Posts

18 February 2013 at 12:27pm

<a title="" rel= "$model" href="$Photo1.URL"> $Photo1.SetWidth(104)</a>


Community Member, 15 Posts

18 February 2013 at 12:44pm

perfect, thank you