[TYPO3-german] Eigenen Marker mittels Hook einsetzen

walk2moon walk2moon at gmx.de
Wed Oct 15 14:36:50 CEST 2008


Hallo David,

vielen Dank für deine Antwort. Der Fehler ist mir wohl leider beim kopieren unterlaufen. aber leider behebt dies noch nicht ganz mein Problem.

Ich bin mir nicht ganz sicher, aber ich habe mal den marker-hook von tt_news mit dem von pbsurvey verglichen und sehe dort, dass andere Argumente übergeben werden:

1. pbsurvey: 
function callHook($arrItem) {
        if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey][$this->prefixId]['processHookItem'])) {
                        foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey][$this->prefixId]['processHookItem'] as $_classRef) {
                                $_procObj = & t3lib_div::getUserObj($_classRef);
                                $strOutput = $_procObj->hookItemProcessor($arrItem, $this);
                        }
                        return $strOutput;
        }
    }
2. tt_news: 
// Adds hook for processing of extra global markers
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['extraGlobalMarkerHook'])) {
  foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['extraGlobalMarkerHook'] as $_classRef) {
						$_procObj = & t3lib_div::getUserObj($_classRef);
						$markerArray = $_procObj->extraGlobalMarkerProcessor($this, $markerArray);
					}
				}
$content .= $this->cObj->substituteMarkerArrayCached($t['total'], $markerArray, $subpartArray, $wrappedSubpartArray);

-------------------------------------

Ich muss wirklich gestehen, dass ich nicht weiß, wie ich das jetzt angehen muss, wenn ich einen Marker im pbsurvey-Template ersetzt haben möchte.

Any suggestions?

Grüße
Walter
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the TYPO3-german mailing list