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.


Our old forums are still available as a read-only archive.

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

Flickr Image Gallery for SilverStripe


33 Posts   19343 Views


5 July 2007 at 3:43pm Google Summer of Code Hacker, 76 Posts

Sig : I was trying to find a good flickr icon to use for tree icon (one that scales nicely in 16x16), but didn't come across any good ones :( the flickr favicon too looks bit cluttered. Please point out if you come across any

Matt : Yeah, it would be good to move RestfulServices to Sapphire and allow to extend it with other modules. As REST becoming a standard for web apps it would be a good move. Definitely it's not just for Web Services, see how RoR uses REST to cleanup it's controllers. It would allow web apps to extend freely while following common convention.


5 July 2007 at 5:55pm Forum Moderator, 628 Posts

Good idea. How's this just to get something better than a plain white box?

The middle (flickr) f icon here:


5 July 2007 at 6:30pm Forum Moderator, 628 Posts

When I tried to get this going with a fresh install of v2.0.2 it unfortunately failed. Did you recently do a change that would break this, or is it not working with 2.0.2?

I get:

Fatal error: Call to a member function getField() on a non-object in /sites/ on line 102

The 2.0.2 code I'm testing isn't identical, but pretty damn close, to the dailybuilds you get.

So, can you test that you can do
wget <silverstripe dailybuild gz>
tar xzf...
wget <mashups dailybuild gz>
tar xzf...


does it work or not :P


5 July 2007 at 9:11pm Forum Moderator, 628 Posts

Oh, and you need an _config.php file otherwise the module isn't included ...


5 July 2007 at 9:44pm Google Summer of Code Hacker, 152 Posts

What about just using their favicon?


5 July 2007 at 9:59pm (Last edited: 5 July 2007 10:00pm), Google Summer of Code Hacker, 76 Posts

And make sure you have set your API key in that config file.

I'll update the SVN code to have a default _config.php file so then people won't get confused in setting up.

Markus : Favicon looks bit cluttered but will use the latter image Sig pointed out. It looks much nice :)


6 July 2007 at 9:13am (Last edited: 6 July 2007 9:14am), Forum Moderator, 628 Posts

Oh sweet.

Yeah I just made it work. I suggest making the default _config.php like this:


// Visit to get your own API key in one quick easy step.


I would then make the FlickrPage expose an error saying the same. One important note: If the API key is not set then have one explanation, whereas if the API key isn't valid then have a seperate error message.

Cheers! Very excited...


6 July 2007 at 9:17am Forum Moderator, 628 Posts

Markus.... I'm afriad doesn't really say "flickr" to me, plus it doesn't look like a page icon...