Kann mir jemand helfen und sagen ob bei einen dieser Funktionen die XML Datei geschrieben wird und ob ich die reihung beeinflussen kann? Das wäre super
Code:function makelist($res) { while($rw = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { if($rw['type']==0) { $markerArray['###TN###'] = $this->getImage('uploads/tx_profslideshowpro/'.$rw['thumbnail'],$this->albumSize[0],$this->albumSize[1]); }else { $markerArray['###TN###'] = $this->getImage($rw['path'].$rw['thumbnail'],$this->albumSize[0],$this->albumSize[1]); } $markerArray['###TITLE###'] = $rw['title']; $markerArray['###DESCRIPTION###'] = $rw['description']; $subpartArray['###AUDIO###'] = $this->audio($rw['audio'],$rw['audiocaption']); // photo selection (IRRE) if($rw['type']==0) { $subpartArray['###MEDIA###'] = $this->images($rw['uid']); // path selection }else { $subpartArray['###MEDIA###'] = $this->directory($rw['path'], array("jpg","jpeg","gif","png")); } $content_item .= $this->cObj->substituteMarkerArrayCached($this->template['album'], $markerArray, $subpartArray); } $subpartArray['###ALBUMS###'] = $content_item; $content = $this->cObj->substituteMarkerArrayCached($this->template['total'], $markerArray, $subpartArray); return $content; }Code:class tx_profslideshowpro_pi3 extends tslib_pibase { var $prefixId = 'tx_profslideshowpro_pi3'; var $scriptRelPath = 'pi3/class.tx_profslideshowpro_pi3.php'; var $extKey = 'prof_slideshowpro'; function main($content,$conf) { $this->conf=$conf; $this->pi_setPiVarDefaults(); $this->pi_loadLL(); $this->pi_USER_INT_obj=1; $this->templateCode = $this->cObj->fileResource($conf['templateFile']); $this->template['total'] = $this->cObj->getSubpart($this->templateCode,'###PI3###'); preg_match_all("/(###.*?###)/s", $this->template['total'], $matches); foreach($matches[0] as $match) { $markerArray[$match] = str_replace("###", "", $match); $markerArray[$match] = $this->conf[$markerArray[$match]]; } $markerArray['###xmlFilePath###'] = $this->pi_getPageLink($GLOBALS['TSFE']->id,'',array('type'=>107)); return $this->cObj->substituteMarkerArrayCached($this->template['total'], $markerArray, $subpartArray); } } if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/prof_slideshowpro/pi3/class.tx_profslideshowpro_pi3.php']) { include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/prof_slideshowpro/pi3/class.tx_profslideshowpro_pi3.php']); }


LinkBack URL
About LinkBacks

Zitieren