Public Overrides Sub ExtendTemplate(t As Dynamicweb.Templatev2.Template) If t.TagExists("Innovadis:RelatedNews") Then Dim newsItemId As Integer = CInt(HttpContext.Current.Request("NewsId")) Dim newsitem As NewsV2.NewsItem = Item Dim b = MyBase.Item Dim aa = newsitem.CustomFields.Count 'is zero Dim bb = b.CustomFields.Count 'is zero t.SetTag("Innovadis:RelatedNews", "hier komt iets") End If End Sub
Developer forum
CustomFields not available through NewsItemDetailsTemplateExtender
Replies
You must be logged in to post in the forum