structure:componentPropertyValue

This tag will get you a component property value if it is a textfield, textarea or other non binding property.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

siteNodeId

false

 

Object/String

The id of the siteNode on which the property is located if not on the current page.

propertyName

false

 

Object/String

The property name the component used to bind the content by in which you wish to get the child pages below.

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 string containing the value.

Examples

The following example gets the component property "Headline" and prints it out.

<structure:componentPropertyValueid="headline" propertyName="Headline"/>
<h1><c:out value="${headline}"/></h1>



comments powered by Disqus