Use the Related Documents Plugin in the Delivery Tier - BloomReach Experience - Open Source CMS
07-01-2019

Use the Related Documents Plugin in the Delivery Tier

Template

In the template the related documents can be iterated like any other list of HippoBean objects. Below are examples for Freemarker and JSP.

Freemarker

<#if document.relatedDocuments??>
  <ul>
    <#list document.relatedDocuments as item>
      <@hst.link var="link" hippobean=item/> 
      <li><a href="${link}">${item.title?html}</a> 
    </#list>
  </ul>
</#if>

JSP

<c:if test="${not empty requestScope.document.relatedDocuments}">
  <c:forEach items="${requestScope.document.relatedDocuments}" var="item">
    <hst:link var="link" hippobean="${item}"/>
    <li><a href="${link}"><c:out value="${item.title}"/></a></li>
  </c:forEach>
</c:if>
Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?