Here is an example:
<html>
<title>My sweet fruits</title>
I've got the following fruits:<br>
#set( $fruits = ["apple", "apricot", "black berries", "blue berries",
"cantelope", "grapes (red)", "grapes (white)", "grapefruit", "grapefruit
(red)", "honey dew", "kiwi", "mango", "plum", "prune", "raspberries",
"starfruit", "strawberries", "water melon"])
#pager(3 5)
<ul>
#foreach ($fruit in $fruits)
#pager_item()
#if ($pager_item_inRange)
<li>$fruit
#end
#end
</ul>
<br>
<center>#pager_end("pager_test.vm")</center>
</html>
Have fun!
> -----Original Message-----
> From: Colin Chalmers [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 5:31 AM
> To: Velocity Developers List
> Subject: Re: #pager velocimacro
>
> Would I be correct in saying that this is a macro for paging through a
> list
> of results? ie result is 100 objects on each page one can show 25.
>
> If so would you mind giving an example as to it's use since it would
> be
> something I need.
>
> Thx
>
> /Colin
>
> ----- Original Message -----
> From: "Ed Yu" <[EMAIL PROTECTED]>
> To: "Velocity-Dev (E-mail)" <[EMAIL PROTECTED]>
> Sent: Monday, July 08, 2002 10:02 PM
> Subject: #pager velocimacro
>
>
> Here it is:
>
> <<VM_pager.vm>>
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Ed Yu, IBM Certified Specialist - AIX System Administrator
> Information Technology Manager,
> University of South Carolina,
> Advanced Solutions Group, Physics Dept.,
> Columbia, SC 29208
> Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED]
>
>
>
>
> ----------------------------------------------------------------------
> ------
> ----
>
>
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>