Versions Compared

Key

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

Anchor
top
top
In This Section

Table of Contents
maxLevel2

...

The CMS Library

The CMS library is used for retrieving information from the XperienCentral content management system.

...

Code Block
themeEclipse
<%@taglib uri="http://www.gxsoftware.com/taglib/cms" prefix="wm" %>

 

...

<wm:documentLink> -  Returns an HTML link to a document and checks for web user authorization. Example usage:

...

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

 

Back to Top

 

...

editable

<wm:editable> -  Marks editable content areas on the page inside the editor. The inline edit mode in XperienCentral needs to know where editable content exists on the page. This is accomplished by wrapping the editable areas using the <wm:editable> tag, thereby indicating where the editable content is located. Example usage:

...

Code Block
themeEclipse
<wm:editable tag="div" contentHolder="$ {pageVersion}" area="title" class="main_title">$
{pageVersion.title}
</wm:editable>

 

Back to Top

 

...

form

<wm:form> - Returns an HTML form tag and a (number of) hidden input tags enclosed in it. Additional inputs can be defined in the body of the <wm:form> tag.

...

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

 

Back to Top

 

...

formPart

<wm:formPart> -  This tag retrieves a form part using its alias as the search criteria. Example usage:

...

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

 

Back to Top

 

...

getMediaItems

<wm:getMediaItems> - This tag retrieves media items from the Content Repository and sorts the results. Example usage:

...

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

 

Back to Top

 

...

image

<wm:image> -  Creates an Image object from its URL. Example usage:

...

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

 

Back to Top

 

...

includeUrl

<wm:includeUrl> - This tag evaluates the URL to which the given parameter points to and writes the result to the JSP page. External URLs should start with http. Internal URLs should be relative to the context path (i.e. start with /). Use this instead of jsp:include to pass on the presentation context. Example usage:

...

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

 

Back to Top

 

...

isActive

<wm:isActive> -  This tag specifies whether the object that is specified comes from a component that is currently active. For example, it returns false when invoked on an element that is contained by a plugin that is in the RESOLVED state (currently not running). Example usage:

...

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

 

Back to Top

 

...

<wm:link> - Using this tag, link objects can be constructed that refer to pages, downloads, etc. This tag supports dynamic attributes (i.e. you can specify your own attributes) which are passed on to the link object that is created.

...

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

 

Back to Top

 

...

object

<wm:object> -  Retrieves an object from the content database which is filled with objects that have an ID and a type. For XperienCentral objects that are exposed through the Java API, wrapper classes are available that encapsulate the data that is stored in the content database. The public API of these wrapper classes is defined in interfaces. The <wm:object> tag can be used as a factory for creating wrapper objects based on the type and object ID. The type is the fully qualified class name of the wrapper interface. If no wrapper object can be created (either the ID or the type is wrong), the value null is used. Example usage:

...

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

 

Back to Top

 

...

pagePart

<wm:pagePart> -  The label defines which JSPF is used to generate the content (looked up in the presentation mappings that XperienCentral creates by reading the presentation descriptor files). An XperienCentral page can contain content consisting of multiple elements, each with its own presentation JSPs. To show these elements, the page presentation JSP should contain a wm tag that renders these elements.

...

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

 

Back to Top

 

...

pageMetaData

<wm:pageMetaData> -  Retrieves a pagemetadata object of the requested type for the current page version. Example usage:

...

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

 

Back to Top

 

...

presentationProperty

<wm:presentationProperty> - Looks up a presentation property defined in the presentation context and returns its value in a JSP variable. Several presentation property types in addition to String and Boolean are supported:

...

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

 

Back to Top

 

...

render

<wm:render> -  renders an object using a presentation.

...

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

 

Back to Top

 

...

sizedImage

<wm:sizedImage> -  Resizes image objects. If the aspect ratio (height/width) of the resized image is different than the source image, the image will be cropped from the top and bottom or left and right to avoid the displaying of black bars. It returns the resized image object. Example usage:

...

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

 

Back to Top

 

...

specialPages

<wm:specialPages> -   Returns the special pages for a specific label. In XperienCentral special pages can be defined for several types of labels. For example, a standard media repository page can be selected or RSS feed pages, etc. Example usage:

...

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

 

Back to Top

 

...

text

<wm:text> - This tag looks up the text value defined for a language label as configured in XperienCentral. The configuration can be found in the Configure > Language Labels menu in XperienCentral. If the var attribute is set, the result is bound to this variable, otherwise the result of the lookup is printed. Example usage:

...

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

 

Back to Top

 

...

The Functions Library

The Functions library contains functions for manipulating data in XperienCentral. Example usage:

...

Code Block
themeEclipse
<%@taglib uri="http://www.gxsoftware.com/taglib/functions" prefix="wmfn"%>

 

Back to Top

 

...

function

 

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

...