This module renders a list of Media Downloads.
This module supports Liquid.
Syntax
{bb_media filter="" sort="" limit="" displayPagination="true|false" emptyMessage="No events found." collectionName="" layout=""}
Properties
- id - System generated ID number.
- filter - These fields and associated values build a filter string as follows:
filter="fieldname1:fieldValue1 | fieldname2:fieldValue2"
Options:- mediaId - renders a single item based on the system ID.
- mediaTitle - renders a single item based on the Media Download title value.
- mediaType - renders an array of items based on the file type value.
- mediaTags
- latest
- sort - This parameter can be used for sorting and builds a sort string as follows:
sort="mediaTitle:Ascending|publishedDate:Descending|sortOrder:Descending"
Options:- mediaId
- mediaTitle
- publishedDate
- sortOrder
- limit – Set the maximum number of items to display. Default is "10".
- ResultsPerPage - (Not available yet) When displayPagination is set to "true" this number will determine the number of items displayed in a page.
- displayPagination - (Not available yet) Renders the pagination section when there are more in the data items than the resultsPerPage value.
- layout - (Not available yet) determines the layout of the content rendered.
Liquid Tags
- {{mediaId}} – System generated ID of the event.
- {{mediaTitle}} – Renders the title of the file wrapped in a hyperlink to download the file.
- {{mediaTitleNoLink}} – Renders the title of the file without a hyperlink.
- {{mediaFIleType}} – Renders the file type based on the file type.
- {{mediaFileIcon}} – Renders an monochrome icon in based on the file type.
- {{mediaFileIconColor}} – Renders a colored version of icon based on the file type.
- {{mediaFileUrl}} – Renders the file URL to download the file.
- {{mediaFileSize}} – Renders the size of the file.
- {{mediaPublishDate}} – Renders the date the file is set to publish to the website. Default is the current date at the time of entry.
- {{mediaExpiryDate}} - Renders the date the file is set to stop being enabled for download on the website.
- {{mediaLastUpdatedDate}} – Renders the date the file was last updated.
- {{mediaIsSecure}} – Renders a true|false value.
- {{mediaSecureZones}} – Renders an array with the names of the Secure Zone(s) the file is assigned.
- {{mediaDownloadCount}} – Renders the number of total downloads for the file.
- {{mediaTags}} – Renders a <ul> list of tags.
- {{mediaAllowedDownloads}} – Renders the number of allowed downloads for the file for the specific user logged in.
- {{mediaRemainingDownloads}} – Renders the number of remaining downloads allowed for a specific user logged in.
Comments
0 comments
Please sign in to leave a comment.