RSS Feed - in a page - for news
@*
This is the part that goes into a page and it's calling news articles.
*@
@BRT.Lister(tableId:"Content", viewId:"News", fields: new[] {"Title", "PubDate", "Body", "Friendly"},
pageSize:50,
itemTemplate:
@<item>
<title>@item["Title"]</title>
@BRT.Raw("<link>PUT IN THE LINK TO THE NEWS PAGE HERE - OR WHATEVER PAGE</link>")
<guid>http://www.[YOUR DOMAIN]/newsdetail/@item.Href</guid>
@if([email protected]("Body")){
<description>@item.GetString("Body").Summarize(100)</description>
}
else
{
<description>no description</description>
}
@if([email protected]("PubDate")){
<pubDate>@item.GetDateTime("PubDate").ToString("R")</pubDate>
}
</item>)