structure:isCurrentSiteNode

This tag returns if the given siteNode is the same as the user are currenly looking at – nice for navigation.

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 to check.

ID-result variable contains:
True or false.

Examples

The following prints out if the given site node is the one the user is looking at now.

<structure:isCurrentSiteNode id="isCurrentSiteNode" siteNodeId="${mySiteNodeId}"/>
Is the siteNode sent in the same one as the user is currently rendering: <c:out value="${isCurrentSiteNode}"/>.                                 



comments powered by Disqus