Skip to content

Commit

Permalink
Merge pull request #64 from ventrian/fix-#63-multipage
Browse files Browse the repository at this point in the history
Fix issues with multipage navigation
  • Loading branch information
skamphuis authored Feb 2, 2022
2 parents 9304d93 + a6fc49a commit 153d6b0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Components/Layout/LayoutController.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,10 @@ Namespace Ventrian.NewsArticles
iPtr = iPtr + 1
End While
Else
If (IsNumeric(Request("PageID"))) Then
_pageId = Convert.ToInt32(Request("PageID"))
End If

If (_pageId = Null.NullInteger) Then
_pageId = Pages(objArticle.ArticleID)(0).PageID
End If
Expand Down Expand Up @@ -1576,6 +1580,10 @@ Namespace Ventrian.NewsArticles
iPtr = iPtr + 1
End While
Else
If (IsNumeric(Request("PageID"))) Then
_pageId = Convert.ToInt32(Request("PageID"))
End If

If (_pageId = Null.NullInteger) Then
_pageId = Pages(objArticle.ArticleID)(0).PageID
End If
Expand Down Expand Up @@ -2101,6 +2109,10 @@ Namespace Ventrian.NewsArticles
If (Pages(objArticle.ArticleID).Count <= 1) Then
objLink.Enabled = False
Else
If (IsNumeric(Request("PageID"))) Then
_pageId = Convert.ToInt32(Request("PageID"))
End If

If (_pageId = Null.NullInteger) Then
_pageId = CType(Pages(objArticle.ArticleID)(0), PageInfo).PageID
End If
Expand Down Expand Up @@ -2130,6 +2142,10 @@ Namespace Ventrian.NewsArticles
If (Pages(objArticle.ArticleID).Count <= 1) Then
objLink.Enabled = False
Else
If (IsNumeric(Request("PageID"))) Then
_pageId = Convert.ToInt32(Request("PageID"))
End If

If (_pageId = Null.NullInteger) Then
_pageId = CType(Pages(objArticle.ArticleID)(0), PageInfo).PageID
End If
Expand Down

0 comments on commit 153d6b0

Please sign in to comment.