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.

Customising the CMS /

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

Image Rotator For SilverStripe Application


Go to End


9 Posts   6070 Views

Avatar
erhan

Community Member, 6 Posts

30 January 2009 at 1:22pm

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...

Avatar
Fuzz10

Community Member, 791 Posts

30 January 2009 at 9:45pm

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

Avatar
Taffy

Community Member, 119 Posts

30 January 2009 at 10:47pm

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.

Avatar
erhan

Community Member, 6 Posts

31 January 2009 at 2:33am

Thank you.

I am going to add it as soon as I have time.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

31 January 2009 at 5:06am

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

Avatar
erhan

Community Member, 6 Posts

31 January 2009 at 5:25am

Different approach, nice job!

But flash rotator can handle swf files as well. ;)

Avatar
freewolny

Community Member, 12 Posts

31 January 2009 at 6:05am

another example with javascript

JQuery Cycle Plugin

Avatar
Trym

Community Member, 18 Posts

11 March 2009 at 5:44pm

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

Go to Top