01-21-2014 01:42 PM
<#ftl ns_prefixes={"news", "http://www.webbynews.ca/news"}>
<#assign news = .vars["news:news"]>
<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>
<title>Webby News</title>
<link>http://www.webbynews.ca</link>
<description>Webby News</description>
<#assign articleList = null>
<#list alf.parseXMLDocuments('Webby News', '/news/xml/') as x>
<#assign xmlname = x["@alf:file_name"]>
<#assign article_path = "/news/xml/" + xmlname>
<#assign listarticle=alf.parseXMLDocument(article_path)>
<#assign jspLink = xmlname?string?substring(0, xmlname?string?index_of(".xml"))+ ".jsp">
<#assign articleList = articleList+ [{"title":listarticle["news:title"],"articledate":listarticle["news:active"] ,"url":jspLink ,"body":listarticle["news:content"] }]>
</#list>
<#list alf.parseXMLDocuments('WEBBY NEWS', '/news/xml/') as x>
<#assign xmlname = x["@alf:file_name"]>
<#assign article_path = "/news/xml/" + xmlname>
<#assign listarticle=alf.parseXMLDocument(article_path)>
<#assign jspLink = xmlname?string?substring(0, xmlname?string?index_of(".xml"))+ ".jsp">
<#assign articleList = articleList+ [{"title":listarticle["news:title"],"articledate":listarticle["news:active"] ,"url":jspLink ,"body":listarticle["news:content"] }]>
</#list>
<#list articleList?sort_by("articledate")?reverse as i>
<item>
<title>${i.title?string?replace("&","&")}</title>
<link>http://www.webbynews.ca/news/articles/${i.url}</link>
<description>${i.body?string?replace("<","<")?replace(">",">")}</description>
</item>
</#list>
</channel>
</rss>
01-28-2014 10:53 AM
<#list (((articleList?sort_by("articledate"))?reverse)?chunk((args["maxEntries"]!"20")?number))?first as i>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.