Hi Eric,
Regrettably, it is not possible to disable
PreviousPageTemplate for the first page. You could consider creating custom method which would return link to previous page based on the current page. For example, this method could return link to previous page on all pages except the first one.
Please take a look at following code snippet:
<cms:UniPager ID="UniPager" runat="server" PageControl="CMSRepeater" PageSize="2" DisplayPreviousNextAutomatically="false" >
<PageNumbersTemplate>
<a href="<%# Eval("PageURL") %>"><%# Eval("Page") %></a>
</PageNumbersTemplate>
<PreviousPageTemplate>
<%# getPreviousURLLink(Eval("Page"), Eval("PreviousURL"))%>
</PreviousPageTemplate>
</cms:UniPager>
CODE BEHIND:
protected string getPreviousURLLink(object Page, object PreviousURL)
{
string output = "";
string currentPage = CMS.GlobalHelper.ValidationHelper.GetString(Page, "");
if (currentPage != "1")
{
output = "<a href=" + CMS.GlobalHelper.ValidationHelper.GetString(PreviousURL, "") + "> back </a>";
}
return output;
}
Best regards,
Michal Legen