Guest User

Untitled

a guest
Jan 14th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. ASP.NET RSS feed error in link tag in item node? Issue with Razor in Umbraco RSS Feed
  2. <rss version="2.0">
  3. <channel>
  4. <title>@landing.uBlogsyRssTitle</title>
  5. <description>@landing.uBlogsyRssDescription</description>
  6. <copyright>@landing.uBlogsyRssCopyright</copyright>
  7. @*<image>@landing.uBlogsyRssImage</image>*@
  8. <link>@Request.Url.Host@landing.Url</link>
  9. <lastBuildDate>@lastPubDate.FormatDateTime("ddd, dd MMMM yyyy HH:mm:ss")</lastBuildDate>
  10. <pubDate>@lastPubDate.FormatDateTime("ddd, dd MMMM yyyy HH:mm:ss")</pubDate>
  11. @foreach (var p in posts)
  12. {
  13. <item>
  14. <title>@p.GetProperty("uBlogsyContentTitle").Value</title>
  15. <link></link>
  16. <author>@p.GetProperty("uBlogsyPostAuthor").Value</author>
  17. <description>@p.GetProperty("uBlogsyContentBody").Value.StripHtml().Trim()</description>
  18. <guid>@p.Url</guid>
  19. <pubDate>@p.GetProperty("uBlogsyPostDate").Value.FormatDateTime("ddd, dd MMMM yyyy HH:mm:ss")</pubDate>
  20. </item>
  21. }
  22. </channel>
  23. </rss>
Add Comment
Please, Sign In to add comment