Documentation > CMS Template API Library > PaginateFieldResult > PaginatedLinks
PaginatedLinks
A collection of links to each of the pages. You may enumerate over this collection with a foreach as in the example.
Type
CrownPeak.CMSAPI.PaginatedLinks
Code Example
C#
Sample:
PaginateFieldResult result = Util.Paginate(asset, "Name");
// Print links to other pages
foreach (PageLink link in result.PaginatedLinks)
{
if (link.IsCurrent())
{
Out.WriteLine("{0}|", link.PageNumber);
}
else
{
Out.WriteLine("<a href=\"{0}\">{1}</a>|", link, link.PageNumber);
}
}