getRelated($entry_type, $sort, $pagesize, $page)

returns the entries related to the current section page.  Related entries are defined when an author of an entry selects the sections associated with the entry.

<<picture of entry form selecting associated sections>>

Syntax:

{$archive->getRelated($entry_type, $sort, $pagesize, $page)}
Parameter Default Value Description Sample Value
$entry_type * String - entry data type rooms
$sort n/a String - this is a custom way of sorting the recordset either ASC or DESC, and with the ability of sorting it via certain columns as well. DESC
$pagesize 100 Integer - maximum # of records per page 100
$page 1 Integer - page # of the results. 1

Sample Usage:

{foreach item="room" from=$archive->getRelated("functionroom", "capstart ASC")}
<h4>{$room._title}</h4>
<p>{$room._short_description}</p> <br/>
<p><b>Capacity:
{$room.capstart|number_format:0} -
{$room.capend|number_format:0}</b>
</p><br/>
{/foreach}

Sample Output:

<h4>ROYALE SUITE ROOM</h4>
<p>One queen size bedroom with tv, aircon, batroom, telephone etc.</p> <br/>
<p><b>Capacity:2-5</b></p><br/>

<h4>CONFERENCE ROOM</h4>
<p>Used for corporate meeting and events such as product launching</p> <br/>
<p><b>Capacity:20-50</b></p><br/>