Video Gallery - Documentation topics on: deprecated,macros,video gallery,.

Video Gallery
Deprecated

** This macro has been deprecated **

This macro pulls all FLV files from a folder and displays a flash video player for each video. If a JPG image with the same name as the video file is provided it will be displayed as a thumbnail of the video.

Macro Overview:

Syntax:

#videoGallery(url)

Arguments:

  • url
    This is the relative path to the folder where the videos and images are stored. Ex: /mypath/mydirectory/

Optional Parameters:

  • width
    This is the width used to create the image thumbnail. If not defined width defaults to 90 pixels.
  • height
    This is the height used to create the image thumbnail. If not defined height defaults to 90 pixels.
  • showVideoTitle
    Set this to false if you don't want to display the video title. It's set to true by default.
  • showVideoDescription
    Set this to false if you don't want to display the video description. It's set to true by default.
  • r
    This is the R color (R,G,B) to use as thumbnail background color. By default background color is set to white.
  • g
    This is the g color (R,G,B) to use as thumbnail background color. By default background color is set to white.
  • b
    This is the b color (R,G,B) to use as thumbnail background color. By default background color is set to white.
  • galleriesToShow
    This variable determines how many videos to show at a time. If not defined all videos are displayed, if set the galleriesToShow videos will be displayed with links to view Next and Previous.

Usage:

The macro will create a video gallery of all videos in the folder: /videos/
Examples:

Example 1: A simple example using the required fields

#videoGallery("/videos/")

Example 2: An example showing how to include one or more of the optional parameters

#set($showVideoTitle = false)
#set($showVideoDescription = false)
#videoGallery("/videos/")

This will display the video gallery with no titles and no descriptions for each video. 

Example 3: An example showing how to include one or more of the optional parameters

#set($w = 200)
#set($h = 200)
#videoGallery("/videos/")

This will display the video gallery with image thumbnails of 200 x 200. 

Example 4: An example showing how to include one or more of the optional parameters

#set($galleriesToShow = 2)
#videoGallery("/videos/")

This will display the video gallery with only two videos at a time, it will display links to Next and Previous to view the rest.