{!# related_articles.ihtml
### displays other articles in the current folder
### only works from /document.php
### this will also not work on pages that include another document
### iteration (such as a BEGIN:all_docs autoblock
#!}
<div class="sidebar">
<b>Related Articles</b><br/>
{BEGIN:folder_docs doc_folder_id}
{!if '({main_doc_id}+0)==({doc_id}+0)'
  '&gt; <b>{doc_title}</b>'
  '&bull; <a href="/document.php?id={doc_id}">{doc_title}</a>'
!}
<br/>
{END:folder_docs}
</div>