The GetPreviousDescription method retrieves a text description of the previous item in the Content Linking List file.
NextLink.GetPreviousDescription( listURL )
This method returns a string describing either the previous item in the Content Linking List file or, if the current page is not in the file, the first item on the list.
A more complete example is at the bottom of Content Linking Component.
--- NextLink_GetPreviousDescription.asp ---
<%
ListFile = "/data/nextlink.txt"
Set objNextLink = Server.CreateObject("MSWC.NextLink")
ThisPageIndex = objNextLink.GetListIndex(ListFile)
If 0 = ThisPageIndex Then
Response.Write "This page is not listed in your Content Linking List file.<BR>"
ElseIf ThisPageIndex > 1 Then
PreviousPageDesc = objNextLink.GetPreviousDescription(ListFile)
Response.Write "The description of the previous page is<BR>" & PreviousPageDesc
Else
Response.Write "You are already at the beginning of the list<BR>"
End If
%>
GetNextDescription, GetNthDescription, GetPreviousURL