Level: Very simple Description: This will create a link to media such as video or audio, with the name of the media as the link and the size of the media dsplayed below the link. Usage description: Create an element of type related media, called AssetLink or whatever makes sense to you. Make AssetLink a subelement of your page element. Now create a template for AssetLink using the code below. When you need a link to media, just include the AssetLink element in your page and relate media to it. % my $rel_media = $element->get_related_media; <% $rel_media->get_title %>
File size: <% $rel_media->get_size %> kbs