[TYPO3-english] rss from tt_news and paths

Pero Matic takoje at takoje.hr
Fri Jan 29 12:04:44 CET 2010


Hi. I have a problem with paths on RSS xml page. RSS is generated from 
tt_news and the problem is when i have for examle some image in news text. 
Then, this image gets path like this:

http://mysite.com/somepath/rss/fileadmin/images/someimage.jpg

instead of:

http://mysite.com/fileadmin/images/someimage.jpg

my RSS page is on URL:

http://mysite.com/somepath/rss/

and this is TS that i use:

# Cooluri
config.simulateStaticDocuments = 0
config.baseURL = http://mysite.com/
config.tx_cooluri_enable = 1
config.redirectOldLinksToNew = 1


plugin.tt_news {
  displayXML {
    rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl
    xmlFormat = rss2
    xmlTitle = MySite
    xmlLink = http://mysite.com
    xmlDesc = desc
    xmlLang = en
    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 = 250 | ... | 1
    subheader_stdWrap.ifEmpty.field = bodytext
    xmlLastBuildDate = 1
    xmlLimit = 20
    dontInsertSiteUrl = 1
  }
}

    xmlnews = PAGE
    xmlnews {
      typeNum = 100
      10 >
      10 < plugin.tt_news
      10.pid_list >
      10.pid_list =  2
      10.singlePid = 3
     ### important part here!! ###
      10.categoryMode = 1
      10.catExcludeList = 8,3
      10.categorySelection = 
4,5,6,7,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24
      ### important part end ###
      10.defaultCode = XML
      config {
        disableAllHeaderCode = 1
        additionalHeaders = Content-type:application/xml
        no_cache = 1
        xhtml_cleaning = 0
       }
    }

THX!





More information about the TYPO3-english mailing list