Hi,
An article about adding image rotator functionality to the ss site.
http://erhanabay.com/2009/01/30/image-rotator-for-your-silverstripe-application/
Comments and suggestions are welcome...
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Hi,
An article about adding image rotator functionality to the ss site.
http://erhanabay.com/2009/01/30/image-rotator-for-your-silverstripe-application/
Comments and suggestions are welcome...
Cool writeup , would you mind creating a recipe in the Silverstripe Wiki as well ? That way , all info will be centralized.
See http://doc.silverstripe.com/doku.php?id=recipes:start&s=recipes
Nice one. I'm going to use the JW player in an up coming project and this will be a great help since i'm a SS newbie.
Thank you.
I am going to add it as soon as I have time.
Very nicely architected, though I'm not sure that a flash object is necessary. I usually do this with a few lines of javascript, as seen here:
http://www.blackriverdesign.com
Different approach, nice job!
But flash rotator can handle swf files as well. ;)
another example with javascript
Hi UncleCheese
I have in Page.php created a function
function FrontPageRotator() {
return DataObject::get("Image", "`ParentID` = 31");
}
And in Page.ss the following template code
<% if frontPageRotator %>
<% control frontPageRotator %>
$Link<br />
<% end_control %>
<% end_if %>
I wanted to have $Image.setWidth(140) instead of $Link, but I dont seem to be able to refer to $Image.
Can you help?
Thanks in advance.
Best regards Trym