MediaExternalIds
The mediaexternalids component lists the external ids and their respective external id providers for any media item.
External ID Provider values are constants and their values are:
- 0: Any provider other than the 7 constants listed below. Constant: EXTERNAL_ID_OTHER
- 1: BRIGHTCOVE. Constant: EXTERNAL_ID_BRIGHTCOVE
- 2: YOUTUBE. Constant: EXTERNAL_ID_YOUTUBE
- 3: INSTAGRAM. Constant: EXTERNAL_ID_INSTAGRAM
- 4: TWITTER. Constant: EXTERNAL_ID_TWITTER
- 5: CHARLIEROSE. Constant: EXTERNAL_ID_CHARLIEROSE
- 6: SWEARNET. Constant: EXTERNAL_ID_SWEARNET
- 7: OOYALA. Constant: EXTERNAL_ID_OOYALA
Example 1
In order to use the media attributes (such as id, title,thumbUrl, approvedcomments) in the templates, you must pass them in the "fields" reference for the MediaList component.
mid: {$$mid}, external_id: {$$external_id}, external_id_provider {$$external_id_provider}, created {$$created}
No ExternalIds were found fore this media!
Example 2
In order to use the media attributes (such as id, title,thumbUrl, approvedcomments) in the templates, you must pass them in the "fields" reference for the MediaList component.
totalCount: {$$totalCount}
mid: {$$mid}, $media.instagram.externalid: {$$media.instagram.externalid}
No ExternalIds were found fore this media!
Supported attributes
Name | Required | Default | Description |
---|---|---|---|
mid | Required | N/A | The id of the media. |
Template variables
Name | Description |
---|---|
external_id | The external id for an external id provider. |
external_id_provider | The external id provider for the external id. Possible valuse are:
|
created | The date/time the external id record was created or updated. |
mid | The id of the media. |
media | An array of the media's external ids: Example of how to read: {$media.instagram.externalid} will display the media's externalid from Instagram, if it exists for this media. |
totalItems | The total number of external ids for the media |
primary_external_id | States whether the external id is the primary one for the media: possible values are 1 (true) or 0 (false). |
See also
- fm:FileInfo
- Complete list of filetype information (the numbers from 1-4 and 11-31).
- Background information on channels
- Background information on collections
- Moderation
- fm:Loop
- fm:MediaNext
- fm:MediaPrevious
- fm:NoResults
- fm:Mp3
- fm:VideoPlayer