Use the Related Documents Plugin in the Delivery Tier

Template Usage

You can access and display related documents in the delivery tier by iterating over the relatedDocuments property, which is a list of HippoBean objects. The following examples show how to render related documents using Freemarker and JSP templates.

Freemarker Example

<#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 Example

<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>
Share Feedback
Page: /build/plugins/core-plugins/delivery-tier
Section: Build
Category *