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.

Archive

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

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

how to embed only the flickr module


Reply

6 Posts   1760 Views

Avatar
Tales Thaler

8 August 2008 at 1:30pm (Last edited: 8 August 2008 9:49pm), Community Member, 3 Posts

Hi, I want to know how to embed only the flickr module in a html file.

Avatar
Willr

9 August 2008 at 10:17pm Forum Moderator, 5511 Posts

just a standard html file or are you using a SilverStripe template file

Avatar
Tales Thaler

10 August 2008 at 5:24am Community Member, 3 Posts

No Silverstripe template used. Anyway, SS is installed and working. I just need to embed the flickr module into another html inside the site.

Avatar
Willr

10 August 2008 at 11:07am Forum Moderator, 5511 Posts

the module won't work outputing to an html file as html is completely static and you can't call the Flickr Modules functions from it.

You would need to convert that HTML file to a Page within SilverStripe and access the flickr module that way

Avatar
Tales Thaler

10 August 2008 at 11:26am Community Member, 3 Posts

Ok, I've got it, I should use it in a php file that calls the flickr module function. but I want to know if it is possible to put ONLY the flickr module, without the SS header, footer, nav bar, etc.

Thank you.

Avatar
Willr

10 August 2008 at 11:39am Forum Moderator, 5511 Posts

Well everything in SilverStripe is pretty integrated so just 'including the flickr code' is quite messy for an external HTML file. If the html file you are trying to use flickr from is separate from your SilverStripe install (which I am assuming) then you could try use a separate PHP Flickr Library class - http://lerdorf.com/php/flickr_api.phps which doesnt have any 'hooks' into SilverStripe and you can use those methods in your php file.