...
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 | Specifies the fallback strategy to use when the media item is not available in the specified language. This attribute has the following options:
See Fallback Language for more information, | No | Yes | ||
fallbacklanguageid | Specifies the ID of the language to use as fallback. This attribute works together with the fallbackstrategy="specific" attribute (see above). | No | Yes | ||
languageid | Specifies the ID of the language that media items must match in order to be retrieved. | 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 |
...
Code Block | ||
---|---|---|
| ||
<script type="text/javascript"> alert('page title is ${wmfn:escapeToJavascript(pageVersion.title)}'); </script> |
Function | Description |
---|---|
| Retrieves a line feed (usually line feeds in JSP pages are ignored). |
| Returns true if the array contains the instance. |
| Converts HTML code to JavaScript document.write statements. |
(string) : string | Replaces \\ with \\\\ and ' with \\' in a string so that it can be used in a JavaScript statement. |
(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. |
(string) : string | Prepends |
(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. |
(object, object[]): int | Returns the index of the object in the array or -1 if the array doesn't contain the object. |
(object, string): boolean | This is more flexible instanceOf implementation than the built-in Java instanceOf operator. |
| Replaces new lines with <br /> . |
(servletcontext, servletrequest, string) : string | Computes a signature for a set of names for the use of secure forms in SiteWorks. |
(servletcontext, servletrequest, string) : string | Generates a secure forms signature for the given HTML fragment. |
(object[][], int, boolean) : object[] | Sorts a two dimensional array (an array of arrays) by the objects in a column. |
(sortedmap[], string, boolean) : sortedmap | Sorts an array of SortedMaps by the elements at a specified key. |
(object[], int, int) : object[] | Returns a sub array of the original array. |
(string) : string | The URL encodes a UTF-8 string. |