structure:relatedPages

If you have used the structure relation editor on a content attribute and added related pages, to for example an article, this tag lets you get those related pages as an collection.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

contentId

false

 

Object/String

The id of the content you wish to get the related contents from.

propertyName

false

 

Object/String

The name of the property that binds to the content you wish to get the related contents from.

attributeName

true

 

Object/String

The name of the attribute containing the related contents.

ID-result variable contains:
A list of org.infoglue.deliver.applications.databeans.WebPage-objects.

Examples

The following example gets a list of contents related to the articleContent on attribute with name RelatedArticles.

<structure:relatedPages id="relatedPages" contentId="${articleContent.contentId}" attributeName="RelatedPages"/>



comments powered by Disqus