Templates
You can choose for each level which template will display this level.
By default, for the category level, the provided template displays in a bulleted list, for each
category, the name of the category and it's description. The name is an hyperlink to the page displaying all the albums of the
category.
Similarly, at the album level, the provided template displays in a bulleted list, for each album of the category, the name
of the album and its description. The name is an hyperlink to the page displaying all the videos of the album.
At the video level,
you can choose between 4 modes: List Links, List Videos, Fancy box, and Awkward Showcase:
- Awkward showcase will display the default video of the album and all other videos as thumbnails. When clicking on
a thumbnail, the video is selected in the upper box. On the box, left and right arrows allows to change to the next or
previous video.
- Fancybox (which is the default choice) will display videos as thumbnails. When clicking on
a thumbnail, a fancybox will appear and play the video. On the fancybox, left and right arrows allows to change to the next or
previous video.
- List Links will display as usual in a bulleted list, for each video of the album, the name of the video
and its description. The name is an hyperlink to the page displaying the video which is displayed using the "detail template"
which is by default DisplayVideo.
- List Videos will display directly in the album's page, for each video of the album, the name of the video, its description and the video itself.
Smarty variables for list template of category
- $leveltitle
- $parentobj (if parent is specified)
- $itemlist (array of items)
- $item->is_selected
- $item->nbchildren (if loaded)
- $item->name
- $item->alias
- $item->detaillink
- $item->detailurl
- $item->description
- $item->isdefault
- $item->date_modified
- $item->date_created
Smarty variables for list template of album
- $leveltitle
- $parentobj (if parent is specified)
- $itemlist (array of items)
- $item->is_selected
- $item->nbchildren (if loaded)
- $item->name
- $item->alias
- $item->detaillink
- $item->detailurl
- $item->description
- $item->lang
- $item->default_width
- $item->default_height
- $item->parent_id
- $item->parent_alias
- $item->parent_name
- $item->parentlink
- $tiem->parenturl
- $item->isdefault
- $item->date_modified
- $item->date_created
Smarty variables for list template of video
- $leveltitle
- $parentobj (if parent is specified)
- $thumbnail_width
- $thumbnail_height
- $itemlist (array of items)
- $item->is_selected
- $item->name
- $item->alias
- $item->detaillink
- $item->detailurl
- $item->description
- $item->site
- $item->site_namevalue
- $item->videoid
- $item->width
- $item->height
- $item->parent_id
- $item->parent_alias
- $item->parent_name
- $item->parentlink
- $tiem->parenturl
- $item->isdefault
- $item->fancyurl
- $item->thumbnail
- $item->date_modified
- $item->date_created
- $fullscreen
- $scriptaccess
Smarty variables for the detail template
- $leveltitle
- $previous_item (if loaded)
- $next_item (if loaded)
- $item->name
- $item->alias
- $item->description
- $item->site
- $item->site_namevalue
- $item->videoid
- $item->parent_id
- $item->parent_alias
- $item->parent_name
- $item->parentlink
- $tiem->parenturl
- $item->isdefault
- $item->thumbnail
- $item->date_modified
- $item->date_created
- $labels->...
In the final level detail template, use the object $labels to print language-sensible field labels ($labels-amp;fieldname).
You may reach the parent objects using $item-amp;parent_object-amp;parent_object-amp;... and so on.
Breadcrumbs
When you are in a module template, you may call the breadcrumbs using the {HostedVideoAlbums_breadcrumbs} tag. You may use the same
parameters as the cms core breadcrumbs tag (initial, delimiter, classid, currentclassid), as well as the "startlevel"
parameter.
Outside module templates, anywhere on the page, you may call the breadcrumbs action {cms_module module="HostedVideoAlbums"
action="breadcrumbs"}, once again using the same parameters.
Video embedding
When you are in a module template, you can embed a video using the {HostedVideoAlbums_embedvideo item=$item} tag. The "item=$item"
parameter is mandatory. Inside the template associated to this tag, you can use the following fields:
- $leveltitle
- $rooturl
- $item->name
- $item->alias
- $item->description
- $item->site
- $item->site_namevalue
- $item->videoid
- $item->width
- $item->height
- $item->lang
- $item->parent_id
- $item->parent_alias
- $item->parent_name
- $item->parentlink
- $tiem->parenturl
- $item->isdefault
- $item->date_modified
- $item->date_created
- $item->color1
- $item->color2
- $item->scriptaccess
- $item->fullscreen
- $item->autoplay
- $item->fullscreen_int (same as fullscreen but 1 instead of true)
- $item->autoplay_int (same as autoplay but 1 instead of true)
- $labels-amp;...