content:remoteContentVersion

A tag capable to fetch the latest active content version directly from the CMS no matter what state. It’s very practical when it comes to editing contents from the live sites in a replicated environment or when showing info from a non-published version. Uses a web service API to work against the CMS.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

contentId

true

 

String

The content id to fetch from

languageId

true

 

String

The language to fetch with

targetEndpointAddress

false

 

 

The webservice Url

operationName

false

 

 

What operation should we call - look at the API

 

ID-result variable contains:
An org.infoglue.cms.entities.content.ContentVersionVO object.

Examples

Gets the latest version from a content with the id 54 in the language with id 1.

<content:remoteContentVersion id="contentVersion" contentId="54" languageId="1"/>
Title: <content:contentAttribute contentVersion="${contentVersion}" attributeName="Title"/>



comments powered by Disqus