Показать сообщение отдельно
Старый 13.04.2012, 19:16   #1
ms9
Продвинутый
 
Регистрация: 31.05.2010
Сообщений: 65
Question Single-новость в xml из tt_news

Список новостей получаю в xml при помощи нижеследующего TS.

pid_list = 10
singlePid = 20
archiveTypoLink = 30
plugin.tt_news.displayXML {
xmlLimit = 15
rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl
title_stdWrap.htmlSpecialChars = 1
title_stdWrap.htmlSpecialChars.preserveEntities = 1
subheader_stdWrap.stripHtml = 1
subheader_stdWrap.htmlSpecialChars = 1
subheader_stdWrap.htmlSpecialChars.preserveEntitie s = 1
subheader_stdWrap.crop = 100 | ... | 1
subheader_stdWrap.ifEmpty.field = bodytext
xmlLastBuildDate = 1
}

rss2 = PAGE
rss2 {
typeNum = 110
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = {$pid_list}
10.singlePid = {$singlePid}
10.defaultCode = XML
10.datetimeDaysToArchive = 1
10.displayXML.xmlFormat = rss2
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 0
}
}

Подскажите, пожалуйста, а возможно ли получить в xml конкретную новость?
ms9 вне форума   Ответить с цитированием