Hi.
I am new to SilverStripe and would love to learn more about how you accomplished the FancyBox integration. Are you pulling images in dynamically or manually placing them in the content areas?
I built a portfolio section based on the news and staff pages in the tutorial. I have the three latest projects showing up on the homepage. I would like to add lightbox effect to the images on the portfolio page and keep it data driven. I am using:
$Screengrab.SetWidth(300)
to place the images on the page. All the examples I see seen to have the content placed on the page manually. (http://www.silverstripe.org/community-showcase/) To me this defeats the purpose of the CMS to a degree as I wont easily be able to use that content in other ways on the site. Can anyone tell me how to grab that image and use the rel tag or whatever to access the javascript? I tried variations on this:
<a href="$Screengrab.SetWidth(800)" rel="lightbox[images]" title="" ><img src="$Screengrab.SetWidth(245)"></a>
I get a XML Parsing Error: not well-formed. I have tried highslide, lightbox, etc all with similar results. I am pretty clueless but trying to learn.
Thanks in advance.