To use this package, download and install it in your Umbraco site.
  1. Add the datatype "Video Embed" to your document type and give it an alias eg. videoLink.
  2. Add the macro "[XSLT]Video Embed" to your template. You'll now see the different parameters available. Fill those in as below.
    1. Height (videoHeight) is the height of the player that shows the video
    2. Width (videoWidth) is the width of the player that shows the video
    3. Video URL (videoUrl) is the link to the video to show. You can just give it the alias you gave the datatype in the document type. Remember brackets and sharp eg. [#videoLink]
    4. Open in Lightbox (openInLightbox) is a boolean that tells the macro to use a preview image and open the video in a lightbox
    5. Height of image preview (previewHeight) sets the height of the preview image, if you chose to open in lightbox
    6. Width of image preview (previewWidth) sets the width of the preview image, if you chose to open in lightbox

If you don't want the video to open in lightbox, you can just forget about the last three parameters

Open in Lightbox mode needs runat="server" in the head attribute.

Embed directly on page
<umbraco:Macro videoHeight="240" videoWidth="320" videoUrl="[#videoLink]" Alias="VideoEmbed" runat="server" />

Embed using lightbox
<umbraco:Macro videoHeight="480" videoWidth="640" videoUrl="[#videoLink]" Alias="videoEmbed" runat="server"
                             previewHeight="240" previewWidth="360" openVideoInLightbox="1" />

Last edited Mar 31, 2010 at 7:44 AM by raly76, version 5

Comments

No comments yet.