...
*The attribute can support EL (Expression Language) values.
...
getMediaItems
Panel | ||||
---|---|---|---|---|
| ||||
The getMediaItems tag was deprecated in XperienCentral version R31. Use getMediaItemVersions instead. See below. |
<wm:getMediaItems>
- This tag retrieves media items from the Content Repository and sorts the results. Example usage:
...
Code Block | ||
---|---|---|
| ||
<wm:formPartgetmediaitems var="userNameFormPart" alias="username" mediaItems"/> ${userNameFormPart} |
The example above retrieves all media items that match a specified term.
...
Attribute | Description | Required | Expression* |
---|---|---|---|
andnotterms | Specifies a comma separated list of terms the returned media item doesn't have. This includes terms present in other channels (XperienCentral R25 and higher). | No | Yes |
andterms | Specifies a comma separated list of terms the returned media item must have. This includes terms present in other channels (XperienCentral R25 and higher). | No | Yes |
contenttypes | Specifies the content type of the media item (article, image, etc.). | No | Yes |
createdsince | Specifies the date after which the returned media items must have been created. | No | Yes |
excludemediaitemids | Specifies the returned media item IDs that need to be excluded. | No | Yes |
orterms | Specifies the term(s) that the returned media items must have at least one of. This includes terms present in other channels (XperienCentral R25 and higher). | No | Yes |
publicationdatefrom | Specifies the beginning of the date range in which the returned media item was published. | No | Yes |
publicationdateto | Specifies the end of the date range in which the returned media item was published. | No | Yes |
referenceddatabaseentity | Specifies the database entity the returned media item is linked to. | No | Yes |
referencedresourceinstance | Specifies the resource instance the returned media item is linked to. | No | Yes |
resultrange | Specifies the number of returned media items to display. | No | Yes |
sortascending | Specifies whether to sort the returned media items in ascending order. | No | Yes |
sortoptions | Specifies how to sort the returned media items. The options are:
| No | Yes |
statusid | Specifies the media item’s workflow state. | No | Yes |
websiteid | Specifies the ID of the website from which the media items are retrieved. | No | Yes |
*The attribute can support EL (Expression Language) values.
...
getMediaItemVersions
Panel | ||||
---|---|---|---|---|
| ||||
The getMediaItemVersions tag was introduced in XperienCentral version R31. |
<wm:getMediaItemVersions>
- This tag retrieves media items from the Content Repository and sorts the results. Example usage:
Code Block | ||
---|---|---|
| ||
<wm:getmediaitemversions var="mediaItemVersions"/> |
The example above retrieves all media items that match a specified term.
Attribute | Description | Required | Expression* |
---|---|---|---|
andnotterms | Specifies a comma separated list of terms the returned media item doesn't have. This includes terms present in other channels (XperienCentral R25 and higher). | No | Yes |
andterms | Specifies a comma separated list of terms the returned media item must have. This includes terms present in other channels (XperienCentral R25 and higher). | No | Yes |
contenttypes | Specifies the content type of the media item (article, image, etc.). | No | Yes |
createdsince | Specifies the date after which the returned media items must have been created. | No | Yes |
excludemediaitemids | Specifies the returned media item IDs that need to be excluded. | No | Yes |
fallbackstrategy | |||
fallbacklanguageid | |||
languageid | |||
orterms | Specifies the term(s) that the returned media items must have at least one of. This includes terms present in other channels (XperienCentral R25 and higher). | No | Yes |
publicationdatefrom | Specifies the beginning of the date range in which the returned media item was published. | No | Yes |
publicationdateto | Specifies the end of the date range in which the returned media item was published. | No | Yes |
referenceddatabaseentity | Specifies the database entity the returned media item is linked to. | No | Yes |
referencedresourceinstance | Specifies the resource instance the returned media item is linked to. | No | Yes |
resultrange | Specifies the number of returned media items to display. | No | Yes |
sortascending | Specifies whether to sort the returned media items in ascending order. | No | Yes |
sortoptions | Specifies how to sort the returned media items. The options are:
| No | Yes |
statusid | Specifies the media item’s workflow state. | No | Yes |
websiteid | Specifies the ID of the website from which the media items are retrieved. | No | Yes |
*The attribute can support EL (Expression Language) values.
...