Quick Start (remove spaces from the { and the hwdvs)
{ hwdvs-player }1{ /hwdvs-player }
This inserts a video player with a single video (video id:1) into the article.
{ hwdvs-related }4{ /hwdvs-related }
This insert 4 related videos into the article.
{ hwdvs-category}4|cat_id=25{ /hwdvs-category}
This inserts 4 videos from a single category (category id:25) into the article.
Insert a Video Player
The content plugin code to add a video into a Joomla article is very simple. Here are some examples:
{ hwdvs-player}1{ /hwdvs-player}
{ hwdvs-player}id=1|height=240|width=320{ /hwdvs-player}
In this example the id is the video ID of the video you wish to insert. The height and width are the height and width of the video player in pixels. Below is a screenshot of adding the code into an article through the WYSIWYG editor in Joomla.
Please note, we have an editor button for this plugin which you can use to automatically insert this code with a click of a button.
Finding the Correct Video ID
To find the Video ID of your video you should locate the video in the video list in the administrator page. The ID is shown next to the video as shown in the screenshot below.
Modifying the Plugin Layout
The content plugin inserts video data into Joomla content using the template file called plug_hwd_vs_videoplayer.tpl. You can easily modify the layout of the video display by editing this file. For the location of this template file please read our article on template file locations.
Inserting just the video player
By default, the content plugin is setup to insert the video player and additional information such as the title, description, etc, etc. You might want to display the information differently. This is easily done by editing the template file. However, if you just want to insert the video player you can use the template below. Unzip the file and copy the file called plug_hwd_vs_videoplayer.tpl to your template directory. For the location of your template directory please read this information on the template locations.
Template to insert only the video player in the content plugin:
Insert Related Videos
The content plugin code to add a video into a Joomla article is very simple. Here is an example:
{ hwdvs-related}4{ /hwdvs-related}
In this example the value 4 is the number of videos you wish to insert into the article. hwdVideoShare will use the meta title, description and keywords from the artcile to find related videos.
However, if you wish to specify your own keywords for hwdVideoShare to use to find related videos, then you can use the following code:
{ hwdvs-related}4|keywords=beach,sand,games{ /hwdvs-related}
In this example the value 4 is the number of videos you wish to insert into the article. The value keywords=beach,sand,games specifies the keywords that will be used to search for related videos. Therefore, any videos related tot eh the words “beach”, “sand” and “games” will be displayed.
Insert Category Videos
{ hwdvs-category}4|cat_id=25{ /hwdvs-category}
In this example the value 4 is the number of videos you wish to insert into the article. The value cat_id=25 determines the ID of the category you wish to insert videos from.