Zum Inhalt springen

dr_blob - rss

Erstellt am 17. Januar 2012 · Noch keine Antworten

Tags: Frage

wini2 ·

hallo,

ich versuche gerade einen rss mit dr_blob anzubieten. die 'normale' ansichten funktioniert, nur rss will nicht.

ich habe schon alle varianten ausprobiert. im moment habe ich sogar eine eigene root-seite angelegt und folgendes ts

Konstanten

plugin.tx_drblob.rss.singlePID = 45
plugin.tx_drblob.rss.language = de
plugin.tx_drblob.rss.pidList = 44

plugin.tx_drblob.rss.recursive = 4
#plugin.tx_drblob.rss.siteUrl = http://meinedomain.de/cms05/index.php?id=46
plugin.tx_drblob.rss.siteUrl = http://meinedomain.de
plugin.tx_drblob.rss.title = meinedomain.de


#plugin.tx_drblob.rss.img_filename = http://meinedomain.de/cms05/typo3conf/ext/dr_blob/ext_icon.gif
plugin.tx_drblob.rss.img_filename = http://meinedomain.de/cms05/fileadmin/dr_blob/folder.gif
plugin.tx_drblob.rss.img_title = meinedomain-rss
plugin.tx_drblob.rss.img_description = meinedomain-rss

Setup (entspricht fast dem der ext)

drblobRSS = PAGE
drblobRSS {
  typeNum = 235
  config {
    disableAllHeaderCode = 1
    additionalHeaders = Content-type:application/xml
    #additionalHeaders = Content-type:text/xml
    xhtml_cleaning = 0
    admPanel = 0
    no_cache = 1
  }
    
  10 = TEMPLATE
  10 {
    template = USER
    template {
      includeLibs = EXT:dr_blob/pi1/class.tx_drblob_pi1.php
      userFunc = tx_drblob_pi1->main
      templateFile = EXT:dr_blob/res/rss_2.tmpl
      
      code = list
      renderAsXML = 1
      pidList = {$plugin.tx_drblob.rss.pidList}
      recursive = {$plugin.tx_drblob.rss.recursive}
      singlePID = {$plugin.tx_drblob.rss.singlePID}

      listView {
        altSubpartMarker = TEMPLATE_RSS2
        listOrderBy = tstamp
        listOrderDir = 1
        limit = 25
        
        author_stdWrap.override.field = author_email
        
        date_stdWrap.date = D, d M Y H:i:s O
        
        description_stdWrap.stripHtml = 1
        description_stdWrap.htmlSpecialChars = 1
        description_stdWrap.htmlSpecialChars.preserveEntities = 1

        images_stdWrap {
          wrap = |      
          cObject = IMAGE
          cObject {
            file.import = uploads/pics/
            file.import.field = images
            file.import.listNum  = 0
            file.maxW = 150px
          }
        }
      }
    }

    marks {
      SITE_TITLE = TEXT
      SITE_TITLE.value = {$plugin.tx_drblob.rss.title}
      SITE_LANG = TEXT
      SITE_LANG.value = {$plugin.tx_drblob.rss.language}
      SITE_DESCRIPTION = TEXT
      SITE_DESCRIPTION.field = description
      SITE_DESCRIPTION.override = {$plugin.tx_drblob.rss.description}
      SITE_LINK = TEXT
      SITE_LINK.value = {$plugin.tx_drblob.rss.siteUrl}

      RSS_LASTBUILD = TEXT
      RSS_LASTBUILD.data = date : U
      RSS_LASTBUILD.date = D, d M Y H:i:s O
      
      IMG_TITLE = TEXT
      IMG_TITLE.value = {$plugin.tx_drblob.rss.img_title}
      IMG = TEXT
      IMG.value = {$plugin.tx_drblob.rss.img_filename}
      IMG_W = TEXT
      IMG_W.value = {$plugin.tx_drblob.rss.img_width}
      IMG_H = TEXT
      IMG_H.value = {$plugin.tx_drblob.rss.img_height}
      IMG_DESCRIPTION = TEXT
      IMG_DESCRIPTION.value = {$plugin.tx_drblob.rss.img_description}
    }
  }
}

die ausgabe beschränkt sich leider auf "These are our latest files"
im quelltext werden die einzelnen datensätze aber ausgegeben.

noch eine frage: wieso erhalte ich keinen xlm-prolog?

danke für eure hilfe