Versions Compared

Key

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

...

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

Specifies the fallback strategy to use when the media item is not available in the specified language. This attribute has the following options:

  • default — The default fallback strategy is used.
  • ignore — Do not use a fallback language. If no version is found in the target language, nothing will be returned.
  • specific — Use the specified language as the fallback language. The specified language is configured with the fallbacklanguageid attribute (see below).

Info

If you do not specify a fallback strategy, default is used.

See Fallback Language for more information,

NoYes
fallbacklanguageidSpecifies the ID of the language to use as fallback. This attribute works together with the fallbackstrategy="specific" attribute (see above).NoYes
languageidSpecifies the ID of the language that media items must match in order to be retrieved.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

...

Code Block
themeEclipse
<script type="text/javascript">
alert('page title is ${wmfn:escapeToJavascript(pageVersion.title)}');
</script>



FunctionDescription

addLineFeed

: string

Retrieves a line feed (usually line feeds in JSP pages are ignored).

contains

(object, object[]) : boolean

Returns true if the array contains the instance.

convertToJavaScript

(string) : string

Converts HTML code to JavaScript document.write statements.

escapeToJavaScript

 

(string) : string
Replaces \\ with \\\\ and ' with \\' in a string so that it can be used in a JavaScript statement.

escapeToText

 

(string) : string
Surrounds the text part with a <pre> tag so that while processing this part should be taken literally and so that line feeds should be preserved.

formatExternalUrl

 

(string) : string

Prepends http:// before an external URL if it doesn't start with http://, https://, ftp://, file://, javascript:, mailto:, / or #.

formSignatureParameterName

 

(servletcontext) : string
If secure forms are enabled, this function retrieves the name of the secure form request parameter. This function returns the name of the form parameter which should be used for sending the form signature.

indexOf

 

(object, object[]): int
Returns the index of the object in the array or -1 if the array doesn't contain the object.

instanceOf


(object, string): boolean
This is more flexible instanceOf implementation than the built-in Java instanceOf operator.

replaceNewLines


(string) : string

Replaces new lines with <br />.

signFormParameters

 

(servletcontext, servletrequest, string) : string
Computes a signature for a set of names for the use of secure forms in SiteWorks.

signFragment

 

(servletcontext, servletrequest, string) : string
Generates a secure forms signature for the given HTML fragment.

sortRows

 

(object[][], int, boolean) : object[]
Sorts a two dimensional array (an array of arrays) by the objects in a column.

sortMaps

 

(sortedmap[], string, boolean) : sortedmap
Sorts an array of SortedMaps by the elements at a specified key.

subArray

 

(object[], int, int) : object[]
Returns a sub array of the original array.

urlEncode

 

(string) : string
The URL encodes a UTF-8 string.


Back to Top