structure:pageUrl

This tag will get you a url to a infoglue page.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

propertyName

false

 

Object/String

The property name the component used to bind the content by in which you wish to get the attribute value from.

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.

siteNodeId

false

 

Object/String

If stated the siteNodeId will be used when creating the url instead of the page bound on the propertyName.

contentId

false

 

Object/String

If given the url will include the argument.

languageId

false

 

Object/String

If given the url will include the language as an argument – thereby overriding the current user language.

ID-result variable contains:
A string representing the url.

Examples

The following example gets an url to the page bound by the component property "Detail page" and prints out the url in the href-tag.

<structure:pageUrl id="detailUrl" propertyName="Detail page"/>
<a href="<c:out value="${detailUrl}"/>">Read more</a>



comments powered by Disqus