Zum Inhalt springen

pibase bei eigenen markern nutzen?

Erstellt am 6. Juli 2009 · 1 Antwort · letzte Antwort am 7. Juli 2009

Tags: Frage

mostwanted ·

hallo allesamt,

habe mit einer eigenen extension die tabelle tt_news um 5 felder und 5 marker erweitert. bei den markern würde ich gerne pibase nutzen.

die klasse die das markerArray erweitert schaut in meinem falls fogendermaßen aus:

<?php
class tx_pauschalen {
	
	function extraItemMarkerProcessor($markerArray, $row, $lConf, &$pObj) {
	
		$markerArray['###TEXT_TEASER###'] = tslib_pibase::pi_RTEcssText($row['tx_pauschalen_text_teaser']);
		$markerArray['###TEXT_LISTANSICHT###'] = tslib_pibase::pi_RTEcssText($row['tx_pauschalen_text_listansicht']);
		$markerArray['###TEXT_SINGLEANSICHT###'] = tslib_pibase::pi_RTEcssText($row['tx_pauschalen_text_singleansicht']);
		$markerArray['###LEISTUNGEN_SINGLEANSICHT###'] = tslib_pibase::pi_RTEcssText($row['tx_pauschalen_leistungen_singleansicht']);
		$markerArray['###PREISE_SINGLEANSICHT###'] = tslib_pibase::pi_RTEcssText($row['tx_pauschalen_preise_singleansicht']);
		
		return $markerArray;
	}
}
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/news_author_rel/class.tx_newsauthorrel.php']) {
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/news_author_rel/class.tx_newsauthorrel.php']);
}
?>

leider bekomme ich folgende fehlermeldung im FE:

Fatal error: Call to a member function parseFunc() on a non-object in /www/typo3shared/typo3_src-4.2.6/typo3/sysext/cms/tslib/class.tslib_pibase.php on line 1312

kann mir jemand einen tipp geben wie ich hier pibase nutzen kann? danke.

mostwanted ·

folgendes hat die lösung gebracht:

<?php

class tx_pauschalen {

	function extraItemMarkerProcessor($markerArray, $row, $lConf, &$pObj) {

		$markerArray['###TEXT_TEASER###'] = $pObj->pi_RTEcssText($row['tx_pauschalen_text_teaser']);
		$markerArray['###TEXT_LISTANSICHT###'] = $pObj->pi_RTEcssText($row['tx_pauschalen_text_listansicht']);
		$markerArray['###TEXT_SINGLEANSICHT###'] = $pObj->pi_RTEcssText($row['tx_pauschalen_text_singleansicht']);
		$markerArray['###LEISTUNGEN_SINGLEANSICHT###'] = $pObj->pi_RTEcssText($row['tx_pauschalen_leistungen_singleansicht']);
		$markerArray['###PREISE_SINGLEANSICHT###'] = $pObj->pi_RTEcssText($row['tx_pauschalen_preise_singleansicht']);

		return $markerArray;
	}
}
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/news_author_rel/class.tx_newsauthorrel.php']) {
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/news_author_rel/class.tx_newsauthorrel.php']);
}
?>