content:boundContents

This tag fetches a list of content objects bound to a certain property.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

propertyName

false

 

Object/String

If set the tag returns the content object bound on this property name.

useInheritance

false

true

boolean

Sets if the tag should look at inherited properties if the given propertyName was not assigned on the current component.

useRepositoryInheritance

false

true

boolean

Sets if the component should use repository inheritance when looking for inherited items.

useStructureInheritance

false

true

boolean

Sets if the component should use inherit properties from it’s parent site nodes.

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

Examples

The following example gets the content object bound to the property "Article". It then gets the original creator and presents his/her name.

<content:boundContents id="articleContents" propertyName="Article" useInheritance="true"/>
<c:forEach var="article" items="${articleContents}" varStatus="count">    
<content:contentAttribute id="Title" contentId="${article.contentId}" attributeName="Title"/>
<c:out value="${Title}"/><br/>
</c:forEach>



comments powered by Disqus