<@cms_audio>

Audio collection audio list tags

Tag Name

<@cms_audio>

Tag Description

Obtain the list of audio data for the audio collection. The data is embedded within the file.<#list DataList as video>${video.title}</#list>Traverse data

Tag attributes

AttributeTypeRequiredAvailable valuesDescriptionDefault
pageBOOLEANNotrue = Yes
false = No
Do we need to paginate the data for retrieval?false
sizeINTEGERNo Pagination: Number of data entries, default: 10
conditionSTRINGNo Extend SQL conditional statements, for example: title like 'a%'
contentIdINTEGERYes Audio Content ID

Tag data attributes

AttributeDescriptionType
audioIdAudio IDLong
authorAuthor:String
bitRateBitrateInteger
channelsNumber of channelsInteger
contentIdContent ID of the corresponding contentLong
createByCreatorString
createTimeCreation TimeLocalDateTime
decoderEncoding methodsString
descriptionIntroductionString
durationDuration, unit: millisecondsLong
fileSizeFile size, unit: bytesLong
formatAudio formatString
pathAudio resource pathString
remarkNotes/CommentsString
samplingRateSampling rateInteger
siteIdSite IDLong
sortFlagSorting valuesInteger
srcAudio access addressString
titleAudio TitleString
typeAudio typeString
updateByLast modified by:String
updateTimeLast modified timeLocalDateTime

Usage Examples

Example 1: Retrieving the audio list on the audio content details page

<@cms_audio contentid="${Content.contentId}" size="10">
<#list DataList as audio>
<div class="audio-item">
  <audio controls>
    <source src="${iurl(audio.path)}" type="audio/mp3">
    Your browser does not support the audio element.
  </audio>
</div>
</@cms_audio>

On this page