[TYPO3-german] tt_news eigen php-code im template

ReneŽ Kockisch kockiren at tu-cottbus.de
Wed Nov 19 12:26:04 CET 2008


BigSebek schrieb:
> Hi,
> 
> noch ein Problemchen.
> 
> Ich habe im Template einen Marker namens ###My_Suche### eingebaut. An diesen möchte ich nun meinen php-code anhängen. Ich schaff es einfach nicht diesen Marker anzusprechen. Meine Versuche waren wie
> 
> plugin.tt_news.altMainMarkers.My_Suche
> 

includeLibs.displayMySuche = EXT:rk_mediathek/displayMySuche.php
plugin.tt_news.itemMarkerArrayFunc = user_displayMySuche

im Temp einfügen. Dann ne Ext bauen und darin die entsprechende php 
Datei erzeugen.

In diese Datei kommt dann folgendes rein:

function user_displayMySuche($markerArray, $conf){
   $pageID = $GLOBALS['TSFE']->id; //bsp für Zugriff auf Array

   $markerArray['###My_Suche###']   = 'Hallo Welt :-) ';
   return $markerArray;
}

So und das war es dann auch schon.

Gruß
René


>> ----------------------------------
>> Kosys - Kockisch ITK Systems and Services
>> Inh. Kockisch René
>>
>> Görlitzer Str. 22
>> 03046 Cottbus
>>
>> Tel.: 0355/ 430 903 81
>> Fax.: 0355/ 430 903 84
>>
>> Internet: www.kosys-cottbus.de
>> E-Mail: rene-kocki... at kosys-cottbus.de
>> _______________________________________________
>> TYPO3-german mailing list
>> TYPO3-german at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
> 


More information about the TYPO3-german mailing list