The {bb_media} 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=""}
Parameters
- 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.
- mediaType - renders an array of items based on the file type value.
- mediaTags - renders an array of items based on the tag(s)
- 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 - Determines the layout of the content rendered. (Future release)
Areas Available
The {bb_media} module tag can be placed within these areas.
- Page Templates
- Web Pages
- Landing Pages
- Content Holders
- Data Collections
Liquid Tags
{{mediaId}}
– System generated ID of the Media Download.{{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 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 in kb.{{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.