Skip to content

Commit

Permalink
Lastest new template does not support "TITLE" tag for IMAGE
Browse files Browse the repository at this point in the history
Issue #69
  • Loading branch information
vmasanas committed Sep 1, 2021
1 parent f59179d commit 7bc8a88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Components/Layout/LayoutController.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,18 @@ Namespace Ventrian.NewsArticles
End If
End If

Case "IMAGETITLE"
If (objArticle.ImageCount > 0) Then
Dim objImageController As New ImageController
Dim objImages As List(Of ImageInfo) = objImageController.GetImageList(objArticle.ArticleID, Null.NullString())

If (objImages.Count > 0) Then
Dim objLiteral As New Literal
objLiteral.Text = objImages(0).Title
objPlaceHolder.Add(objLiteral)
End If
End If

Case "IMAGECOUNT"
Dim objLiteral As New Literal
objLiteral.Text = objArticle.ImageCount.ToString()
Expand Down

0 comments on commit 7bc8a88

Please sign in to comment.