繁体   English   中英

tt_news RSS Feed,显示HTMLcode

[英]tt_news RSS Feed, show HTMLcode

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

有任何想法吗?

那就是我的Constantscode:

    # 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
  }
}

尝试以下方式:

### 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
   }
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM