Loading...
 
Skip to main content
Display a YouTube playlist

Module last_youtube_playlist_videos

Related Topics

"It displays a playlist of videos from youtube"

Usage

Module
Copy to clipboard
{MODULE(module=last_youtube_playlist_videos, id=yourplaylistid, dev_key=your_youtube_api_key)} {MODULE}

Parameters

Display a YouTube playlist
Required parameters are in bold.
Go to the source code
Preferences required: wikiplugin_youtube

Parameters Accepted Values Description Default Since
dev_key any string except for HTML and PHP tags The key must be generated from the Google console. Choose to create a server key.
id any string except for HTML and PHP tags ID of the YouTube playlist to display (not the complete URL). Example: id=4DE69387D46DA2F6
height any string except for HTML and PHP tags Height of each video in pixels 350
width any string except for HTML and PHP tags Width of each video in pixels 425
allowFullScreen (blank)
true
false
Enlarge video to full screen size 1
link_url any string except for HTML and PHP tags Url for a link at bottom of module. Example: link_url=http://www.youtube.com/CouncilofEurope#grid/user/E57D0D93BA3A56C8
link_text any string except for HTML and PHP tags Text for link if link_url is set, otherwise 'More Videos' More Videos
orderby (blank)
position
commentCount
duration
published
reversedPosition
title
viewCount
Criteria to order by the videos in the list. Default is 'position' position
verbose (blank)
y
n
Display description of video on title mouseover if 'y'. Default is 'y'


YouTube API Key

You need to have a Google YouTube API Key v3 by the time of this writing (2018). In short, thant requires that you have a Google account to access the Google API Console, request an API key, register your application, create a project, create credentials, and make sure the status is ON for the YouTube Data API v3.

See: https://developers.google.com/youtube/v3/getting-started

In addition, since Tiki19+, you need to install the external package google/apiclient through the Packages Control Panel.

Example

This code:

Copy to clipboard
{module module="last_youtube_playlist_videos" id="PLM2ch5TKp0OdwhnWPhNHOZqTnZGzuR3DF" dev_key="AIzaSyCW-_h9DTf4tzNPqsbbBLkh2b970RWaK5o"}


Would produce:


See these pages for information that applies for all modules: