I am using Kentico 5.5R2 for my site where I want to generate GoogleNewsSitemap. So far, my code is able to retrieve the url and publication date of newarticle, but I canβt get the title of the news article dynamically here the code
<url> <loc><%# GetAbsoluteUrl(GetDocumentUrl()) %></loc> <news:news> <news:publication> <news:name>Yourwellness </news:name> <news:language>eng</news:language> </news:publication> <news:genres>PressRelease, Blog</news:genres> <news:publication_date> <%# GetDateTime("DocumentModifiedWhen", "dd-MMM-yy")%> </news:publication_date> <news:title>method for fetching title Comes here </news:title> <news:keywords>Health</news:keywords> </news:news> </url>
I tried many methods to get the header, but it looks empty.
source share