내 웹 사이트에 GoogleNewsSitemap을 생성하려는 Kentico 5.5R2를 사용하고 있습니다. 지금까지 내 코드 newarticle URL 및 게시 날짜를 가져올 수 있습니다,하지만 난 뉴스 기사의 제목을 가져올 수 아니에요 동적으로 여기에 내가 제목을 가져 오기 위해 많은 방법을 시도kentico CMS를 사용하여 GoogleNewsSitemap에서 뉴스 기사 제목을 가져 오는 방법
<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>
코드입니다하지만 빈 온다 .
사용자 정의 문서 형식과 다른 뭔가를 사용하지 않는 경우 예 :이 ']]> ' –
leroy