Documentation > CMS Template API Library > PaginateResultBase > 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:
List<Asset> pressReleases = folder.GetFileList(); PaginateResult result = Util.Paginate(pressReleases, 10); // 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); } }