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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

YouTube Module supply feed to homepage


Go to End


2 Posts   679 Views

Avatar
lozhowlett

Community Member, 151 Posts

22 November 2011 at 5:41am

Edited: 22/11/2011 6:30am

Hi everyone

I have installed in the youtube module, which works great - however I want to also pull a feed of the 3 latest videos uploaded to the homepage and have no idea how to start on this... I tried

function YoutubeVideos($num=3){
        $blogs = DataObject::get_one("YoutubeGallery"); 
        return ($blogs) ? DataObject::get("YoutubeGallery", "", "", "", $num) : false; 
    }

However this then only displays the information needed for the API service to go and grab the videos, i through the video URLs might be stored in the DB, but no :(

Any ideas welcome!

Thanks

Avatar
lozhowlett

Community Member, 151 Posts

23 November 2011 at 6:04am

Bump!