structure:childPages

This tag will get you a list of child pages beneath a page, either bound though a property or referenced by a sitenode id.

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 you wish to get the child pages below.

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.

escapeHTML

false

false

Object/String

If set to yes up any attributes fetched will be HTML-enoded so no non-ascii chars are left.

hideUnauthorizedPages

false

false

Object/String

If set to true the pages the user have no access to will not be shown.

 

ID-result variable contains:
A list of org.infoglue.deliver.applications.databeans.WebPage-objects.

Examples

The following example gets all the children to the page bound by the component property "BasePage" and prints out the NavigationTitle on each one of them.

<structure:childPages id="childPages" propertyName="BasePage"/>
<c:forEach var="childPage" items="${childPages}" varStatus="count">     
  The page id is: <c:out value="${page.siteNodeId}"/><br/>
  <a href="<c:out value="${page.url}"/>"><c:out value="${page.navigationTitle}"/></a>
</c:forEach>



comments powered by Disqus