{**
* XS2:
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @version 1.XX
*}
<?xml version="1.0" encoding="windows-1251"?>
{* Опция $newsCount: сколько последних новостей выводить *}
{assign var="newsCount" value=5}
{* Опция $truncateNews: сколько символов текста новости показывать в качестве анонса *}
{assign var="truncateNews" value=150}
<rss version="2.0">
<channel>
<title>Лента новостей сайт</title>
<link>http://{$_THE.PRJ.Domain}{xs2Href mod="news" met="list"}</link>
<description>Лента посвящена...</description>
<language>ru</language>
<generator>XS2 Framework</generator>
{* Вывод ленты RSS 2.0 *}
{xs2GetNodes NType="news" var="news"}
{section name="newsLoop" loop=$news max=$newsCount}
<item>
<title><![CDATA[{$news[newsLoop].NName}]]></title>
<link>http://{$_THE.PRJ.Domain}{xs2Href mod="news" obj="news" met="show" atr=$news[newsLoop].NodId}</link>
<description><![CDATA[{$news[newsLoop].Text|truncate:$truncateNews}]]></description>
<pubDate>{$news[newsLoop].Date}</pubDate>
</item>
{/section}
{* /Вывод ленты RSS 2.0 *}
</channel>
</rss>
|
|