Youtube Channel Integration Block
0 guests and 0 members have just viewed this.
The top 3 point earners from 23rd Mar 2025 to 30th Mar 2025.
PDStig |
|
|
---|---|---|
Adam Edington |
|
|
Rajesh Kumar |
|
|
There are no events at this time
For the channel ID issue, can you provide the channel ID or possibly the whole comcode block code you used that didn't work as expected (in Whisper or Private Topic if you don't want to post it publicly)? It's possible it's incorrect options, but it's also very possible YouTube API changes are causing problems. For the sorting of the videos, the YouTube API once supported a way to select the sorting but for some odd reason YouTube removed it. I'll check to see if sorting has been brought back in the YouTube API.
Now that I have a better understanding of jQuery and AJAX, this addon could probably use an overhaul…the pagination should be more automatic and should just update the block element of the web page instead of having to manually create new pages with slightly different block parameters.
To address some of the other issues in more depth… The lead text parameters (formorelead, formoretext, and formoreurl) are only used in the template when the Style parameter is set to 3. The template(s) would need to be customised to include those parameters where desired. For pagination, the block itself doesn't do pagination internally. If you had a channel or playlist with 100 videos and wanted 10 videos per page, you would need to manually create 10 comcode pages, add the YouTube Channel block to each of those pages, and change the start_video block parameter on each comcode page (start_video=1, max_videos=10 for page 1, start_video=11, max_videos=10 for page 2, etc). For sorting/ordering videos, the YouTube Data API is limited as far as which API calls allow sorting. The PlaylistItems API call I am using doesn't have any sorting options available. For YouTube user created playlists, the ordering in the block will match the order in the playlist on YouTube. If you wanted a different order, you would have to create your own version of the playlist with the ordering you want and then use your newly created YouTube playlist in the YouTube Channel block. For the YouTube-created channel uploads playlist that contain all videos uploaded to a channel, the ordering should always be reverse order by date and time so the newest uploads are listed first.
That's all I have to say, just thought I'd mention to add some more context.