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.

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   818 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!