Mit TypoScript ein XML-Feed für monoslideshow erzeugen
vom 31. March 2010 in TYPO3, Extension
Mit der monoslideshow von Monokai lassen sich Flash-Slideshows generieren. Um diese per Content-Element aus dem Backend pflegen/generieren zu können, bietet sich folgender TypoScript Schnipsel an:
xmlBilder = PAGE xmlBilder { typeNum = 2 config { disableAllHeaderCode = 1 additionalHeaders = Content-Type:text/xml xhtml_cleaning = } 10 { template = FILE template.file = fileadmin/monoslideshow.xml } 10.marks { IMAGES = COA IMAGES { 10 { table = tt_content select { where = colPos = 1 orderBy = sorting pidInList = 1 } renderObj = COA renderObj { 10.file.import = uploads/pics/ 10.file.import.field = image 10.file.import.listNum = 0 10.file.maxW.field = imagewidth 10.file.maxW.ifEmpty = 970 10.file.maxH.field = imageheight 10.file.maxH.ifEmpty = 220 } } } } }
Das Template monoslideshow.xml könnte wie folgt aussehen (Konfiguration hier nachzulesen) und sollte den Marker ###IMAGES### enthalten:
<?xml version="1.0" encoding="utf-8"?> <!-- Monoslideshow 2.0 configuration file Please visit <a href="http://www.monoslideshow.com" target="_blank" >www.monoslideshow.com</a> for more info --> <album> <configuration delay="8" randomize="true" backgroundColor="#F5F5F5" > <transition kenBurnsMode="randomZoom" kenBurnsStrength="0.5" kenBurnsTime="6" size="0.65" time="6" type="blend" /> <controller type="none" /> </configuration> <contents> ###IMAGES### </contents> </album>
zurück
