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?

    We rely on cookies

    to optimize our communication and to enhance your customer experience. By clicking on the Accept and Close button, you agree to the collection of cookies. You can also adjust your preferences by clicking on Manage Preferences. For more information please see our Privacy policy.

    Manage cookies
    Accept & close

    Cookies preferences

    Accept & close
    Back