diff --git a/App_LocalResources/LatestArticlesOptions.ascx.resx b/App_LocalResources/LatestArticlesOptions.ascx.resx index 4a8eba8..7e87c05 100755 --- a/App_LocalResources/LatestArticlesOptions.ascx.resx +++ b/App_LocalResources/LatestArticlesOptions.ascx.resx @@ -112,10 +112,10 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 In this section, you can adjust the settings for the "Latest Articles" module. @@ -675,4 +675,7 @@ Template Saves + + The tile for the image of the article, displays nothing if no image selected. + \ No newline at end of file diff --git a/Components/Layout/LayoutController.vb b/Components/Layout/LayoutController.vb index 26164c1..53cf948 100755 --- a/Components/Layout/LayoutController.vb +++ b/Components/Layout/LayoutController.vb @@ -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() diff --git a/LatestArticlesOptions.ascx b/LatestArticlesOptions.ascx index bbbd0e6..4dd98a2 100755 --- a/LatestArticlesOptions.ascx +++ b/LatestArticlesOptions.ascx @@ -536,6 +536,14 @@ + + + [IMAGETITLE] + + + + + [IMAGELINK] diff --git a/LatestArticlesOptions.ascx.designer.vb b/LatestArticlesOptions.ascx.designer.vb index f4aa150..2301745 100755 --- a/LatestArticlesOptions.ascx.designer.vb +++ b/LatestArticlesOptions.ascx.designer.vb @@ -1436,6 +1436,15 @@ Namespace Ventrian.NewsArticles ''' Protected WithEvents lblImage As Global.System.Web.UI.WebControls.Label + ''' + '''lblImageTitle control. + ''' + ''' + '''Auto-generated field. + '''To modify move field declaration from designer file to code-behind file. + ''' + Protected WithEvents lblImageTitle As Global.System.Web.UI.WebControls.Label + ''' '''lblImageLink control. '''