You are here:   » Home » Documentation » Details » How-To » Links » Home

List of all links with reference to the current object

An automatic list of "related documents" shall be generated listing those documents that address per link objects the current document as link target.

Solution: The function getRefByObjs provides a list of the objects referencing the current object .

<dtml-in "getRefByObjs(REQUEST)">
 <dtml-let ob="getLinkObj(_['sequence-item'],REQUEST)">
  <dtml-if ob>
   <dtml-with ob>
    <li>
     <a href="<dtml-var "getHref2IndexHtml(REQUEST)">">
      <dtml-var "getTitle(REQUEST)">
     </a>
    </li>
   </dtml-with>
  </dtml-if>
 </dtml-let>
</dtml-in>
Print this Document   change language   Sitemap   Contact