content:remoteContentService

A collection of tags aimed at performing some CRUD operations on contents in Infoglue from the deliver engine. Uses a web service API to work against the CMS.

Parameters

Name

Required

Default

Type

Description

id

true

 

String, Boolean or StatusBean

The result is stored in this variable. If you use the createContents or createSiteNodes you will get a StatusBean back which contains id’s of new contents, status messages etc.

targetEndpointAddress

false

 

 

The webservice Url

operationName

 

 

 

What operation should we call - look at the API

principal

 

 

 

What principal is doing the operation – defaults to the current user (anonymous or extranet).

 

ID-result variable contains:
The result from the webservice – mostly a string with ok / nok.

Examples

This example creates a new Article-content in the CMS under the folder with content id 21(use alternative method like binding perhaps to point out where). It also creates a version with two attributes – Title and FullText in the language the user is currently browsing the site. You can of course make this example much more dynamic but this is a small example at least.

<page:deliveryContext id="dc" useFullUrl="true" disableNiceUri="false"/>

<content:contentTypeDefinition id="ctd" contentTypeDefinitionName="Article"/>
<content:remoteContentService id="rcs" operationName="createContents">
  <content:contentParameter name="InfoGlue test" parentContentId="21" contentTypeDefinitionId="${ctd.id}" repositoryId="1">
    <content:contentVersionParameter languageId="${dc.languageId}">
      <content:contentVersionAttributeParameter name="Title" value="InfoGlue test"/>
      <content:contentVersionAttributeParameter name="FullText" value="InfoGlue has now created a content from deliver"/>
      <content:categoryParameter categoryKey="Service categories" fullCategoryName="/Service areas/Hosting"/>
    </content:contentVersionParameter>
  </content:contentParameter>
</content:remoteContentService>



comments powered by Disqus