getLatest($entry_type, $pagesize, $field, $page)

This is function is DEPRECATED.
works like the getRecent function only the order of the parameters are inter-changed,
please use getRecent instead. 

Syntax:

{$archive->getLatest($entry_type,$pagesize,$field ,$page)}
Parameter Default Value Description Sample Value
$entry_type * String - enrty data type News
$pagesize 100 Integer - maximum number of records per page 3
$field _date_created DESC String - the date field which is used determine the most recent records. if none is specified, it defaults to _date_created. eventdate
$page 1 Integer - the page of the result 1

Sample Usage:

{assign var="news" value=$archive->getLatest("news", 3, "eventdate", 1)}

{foreach item="$news_item" from=$news}
<h2>{$news_item.title}</h2> <br/>
<i>{$news_item.eventdate|date_format}</i> <br/>
<p>{$news_item._short_description}</p> <br/>
{/foreach}

Sample Output:

<h2>NEWS HEADLINE 3</h2> <br/>
<i>April 18,2008</i> <br/>
<p>News 3: third short description </p> <br/>

<h2>NEWS HEADLINE 2</h2> <br/>
<i>April 17,2008</i> <br/>
<p>News 2: second short description </p> <br/>

<h2>NEWS HEADLINE 1</h2> <br/>
<i>April 16,2008</i> <br/>
<p>News 3: first short description </p> <br/>