content:contentExportUrl

A tag capable of exporting a content fully into an importable xml file. Same result as the content export feature found in the content tool but available from templates. We use this in InfoGlue.org to automatically export the latest version of templates on requests.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

contentIdList

false

 

String

State this list if you wish to export multiple contents. A list of Integers.

contentId

false

 

String

State this if you only wish to export one content.

fileNamePrefix

true

 

String

The prefix of the file.

includeContentTypeDefinitions

false

 

boolean

State if you want the export to include the content type.

includeCategories

false

 

boolean

State if you want the export to include the categories in the system.

 

ID-result variable contains:
An url to the exported file.

Examples

Gets an export of the template-content itself (exporting the component actually).

<content:contentExportUrl id="exportUrl" contentId="${pc.componentLogic.infoGlueComponent.contentId}" fileNamePrefix="MyTestExport" includeCategories="false"  includeContentTypeDefinitions="false"/>
<a href="<c:out value="${exportUrl}"/>">Download content</a>



comments powered by Disqus