structure:componentProperties

Returns all the properties all components on the page with the same property name.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

siteNodeId

false

 

Object/String

The id of the site node we are to check for properties.

propertyName

true

 

Object/String

Sets which property to check for bindings.

useInheritance

false

true

boolean

Sets if the component should look for other articles on other components with the same propertyname, either on the same page or on pages above.

useRepositoryInheritance

false

true

boolean

Sets if the component should use the repository inheritance or not when looking up entities using inheritance.

useStructureInheritance

false

true

boolean

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

 

ID-result variable contains:
A list of Map-objects which contains information as elements in them like name, path, type and bindings.

Examples

This example gets all articles on a page and then loops them and prints info on each bound content.

<structure:componentProperties id="articleProperties" siteNodeId="${param.originalSiteNodeId}" propertyName="Article" useInheritance="false"/>
<c:forEach var="articleProperty" items="${articleProperties}" varStatus="count">
    <c:forEach var="articleBinding" items="${articleProperty.bindings}" varStatus="countBindings">
    <content:content id="articleContent" contentId="${articleBinding}"/>
    <content:contentAttribute id="title" contentId="${articleContent.id}" attributeName="Titel"/>
    <p><c:out value="${title}" escapeXml="false"/></p>      
   </c:forEach>
  </c:if>
</c:forEach>                                         



comments powered by Disqus