tt_news RSS Feed,显示HTML代码

时间:2014-10-15 16:22:12

标签: typo3 tt-news

我在tt_news扩展程序中使用RSS-Feed。我的主要问题是XML文件显示了我网站的HTML结构,但我不知道为什么?

任何想法?

这就是我的常数代码:

    # RSS2
plugin.tt_news {
  # SYS-Folder mit News
  pid_list               = 61
  # Seite mit Singleanzeige
  singlePid              = 62
  displayXML {
    xmlTitle             = {$c_rss.title}
    xmlLink              = {$baseURL}
    xmlFormat            = rss2
    rss2_tmplFile        = fileadmin/Resources/Private/Templates/rss_2.tmpl
    # Anzahl News in Reader
    xmlLimit             = 10
    xmlDesc              = {$c_rss.description}
    # Sprache
    xmlLang              = {$c_rss.lang}
    title_stdWrap.htmlSpecialChars = 1
    title_stdWrap.htmlSpecialChars.preserveEntities = 1
    subheader_stdWrap.stripHtml = 1
    subheader_stdWrap.htmlSpecialChars = 1
    subheader_stdWrap.htmlSpecialChars.preserveEntities = 1
    subheader_stdWrap.crop = 425 | ...
    subheader_stdWrap.ifEmpty.field = bodytext
    xmlLastBuildDate     = 1
    xmlIcon = main/typo3conf/ext/tt_news/ext_icon.gif
  }
}

那就是TS代码:

# RSS
page.headerData.1100 = TEXT
page.headerData.1100.value = <link rel="alternate" type="application/rss+xml" title="RSS-Feed" href="{$baseURL}/rss.xml" />
xmlnews = PAGE
xmlnews {
  typeNum = 100
  10 >
  10 < plugin.tt_news
  10.pid_list >
  10.pid_list = 61
  10.singlePid = 63
  10.defaultCode = XML
  config {
    disableAllHeaderCode = 1
    additionalHeaders = Content-type:text/xml
    no_cache = 1
    xhtml_cleaning = 0
  }
}

1 个答案:

答案 0 :(得分:0)

与这个常数一起尝试:

### News settings ###
plugin.tt_news {
   displayXML {
    xmlCaching = 1
    xmlLimit = 15
    xmlFormat = rss2
    xmlTitle = News
    xmlLink = http://your.url/
    xmlDesc = description
    xmlLang = de
    title_stdWrap.htmlSpecialChars = 1
    title_stdWrap.htmlSpecialChars.preserveEntities = 1
    subheader_stdWrap.stripHtml = 1
    subheader_stdWrap.htmlSpecialChars = 1
    subheader_stdWrap.htmlSpecialChars.preserveEntities = 1
    subheader_stdWrap.crop = 425 | ... | 1
    subheader_stdWrap.ifEmpty.field = bodytext
    xmlLastBuildDate = 1
    rss2_tmplFile = fileadmin/Resources/Private/Templates/rss_2.tmpl
   }
}