Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

*The attribute can support EL (Expression Language) values.


Back to Top


...

getMediaItems


Panel
borderColor#0081C0
titleColor#0081C0

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
themeEclipse
<wm:formPartgetmediaitems var="userNameFormPart" alias="username" mediaItems"/> ${userNameFormPart}


The example above retrieves all media items that match a specified term.

...

AttributeDescriptionRequiredExpression*
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).

NoYes
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).

NoYes
contenttypes

Specifies the content type of the media item (article, image, etc.).

NoYes
createdsince

Specifies the date after which the returned media items must have been created.

NoYes
excludemediaitemids

Specifies the returned media item IDs that need to be excluded.

NoYes
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).

NoYes
publicationdatefrom

Specifies the beginning of the date range in which the returned media item was published.

NoYes
publicationdateto

Specifies the end of the date range in which the returned media item was published.

NoYes
referenceddatabaseentity

Specifies the database entity the returned media item is linked to.

NoYes
referencedresourceinstance

Specifies the resource instance the returned media item is linked to.

NoYes
resultrange

Specifies the number of returned media items to display.

NoYes
sortascending

Specifies whether to sort the returned media items in ascending order.

NoYes
sortoptions

Specifies how to sort the returned media items. The options are:

  • creationdate
  • mostviewed
  • mostreactions
  • publicationdate
  • modificationdate
  • voteaverage
  • webtitle
  • lastpost
NoYes
statusid

Specifies the media item’s workflow state.

NoYes
websiteid

Specifies the ID of the website from which the media items are retrieved.

NoYes

*The attribute can support EL (Expression Language) values.


Back to Top


Back to Top


...

getMediaItemVersions


Panel
borderColor#0081C0
titleColor#0081C0

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
themeEclipse
<wm:getmediaitemversions var="mediaItemVersions"/>

The example above retrieves all media items that match a specified term.


AttributeDescriptionRequiredExpression*
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).

NoYes
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).

NoYes
contenttypes

Specifies the content type of the media item (article, image, etc.).

NoYes
createdsince

Specifies the date after which the returned media items must have been created.

NoYes
excludemediaitemids

Specifies the returned media item IDs that need to be excluded.

NoYes
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).

NoYes
publicationdatefrom

Specifies the beginning of the date range in which the returned media item was published.

NoYes
publicationdateto

Specifies the end of the date range in which the returned media item was published.

NoYes
referenceddatabaseentity

Specifies the database entity the returned media item is linked to.

NoYes
referencedresourceinstance

Specifies the resource instance the returned media item is linked to.

NoYes
resultrange

Specifies the number of returned media items to display.

NoYes
sortascending

Specifies whether to sort the returned media items in ascending order.

NoYes
sortoptions

Specifies how to sort the returned media items. The options are:

  • creationdate
  • mostviewed
  • mostreactions
  • publicationdate
  • modificationdate
  • voteaverage
  • webtitle
  • lastpost
NoYes
statusid

Specifies the media item’s workflow state.

NoYes
websiteid

Specifies the ID of the website from which the media items are retrieved.

NoYes

*The attribute can support EL (Expression Language) values.

...