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.

All other Modules

Discuss all other Modules here.

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

YouTube Module supply feed to homepage


Reply

2 Posts   390 Views

Avatar
lozhowlett

22 November 2011 at 5:41am (Last edited: 22 November 2011 6:30am), Community Member, 146 Posts

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

23 November 2011 at 6:04am Community Member, 146 Posts

Bump!