[TYPO3-german] Eigene Schnellfinder Extension - Rückgabewert problem!!!!
Genc, Ural
u.genc at mgvs.de
Wed May 17 17:10:57 CEST 2006
Hallo Leute,
ich habe probleme mit meiner selbst entwickelten Schnellfinder
(QuickLink) Extension. Und zwar will ich meine Extension über TypoScript
einbinden.
[TS]
includeLibs.tx_schnellfinder =
EXT:schnellfinder/class.tx_schnellfinder.php
temp.jsmenu = COA
temp.jsmenu.10 = HTML
temp.jsmenu.10.value = <div id="schnellfinder"><p class="quick">Oft
besucht:</p>
temp.jsmenu.20 = HTML
temp.jsmenu.20.postUserFunc = tx_schnellfinder->generateLink
temp.jsmenu.30 = HTML
temp.jsmenu.30.value = </div>
[/TS]
und das hier ist meine Klasse:
[PHP]
|class tx_schnellfinder { |
| function generateLink() { |
| $this->conf=$conf; |
| $this->pi_setPiVarDefaults(); |
| $this->pi_loadLL(); |
| $this->pi_USER_INT_obj=1; // Configuring so caching is
not expected. This value means that no cHash params are ever set. We
do this, because it's a USER_INT object! |
| |
| $from_table = tx_tkschnellfinder_link; |
| |
| $res =
$GLOBALS['TYPO3_DB']->exec_SELECTquery('*',$from_table,$where_clause,$groupBy='',$limit='');
|
| |
| $num = $GLOBALS['TYPO3_DB']->sql_num_rows($res); |
| |
| $arrayZiffer =
array("1","2","3","4","5","6","7","8","9","0"); |
| $arrayBuchst = array("h","w"); |
| |
| $content = '<form class="fquick" action=""><select
style="width:8.5em;" name="jumper" id="jumper"
onChange="jumpMenu(parent, this, 0)">'; |
| |
| for($i = 0;$i<$num;$i++) { |
| $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res); |
| |
| if(in_array($row["pfad"][0], $arrayZiffer)) { |
| $content .= '<option
value="index.php?id="'.$row["pfad"].'">'.$row["bezeichnung"].'</option>';
|
| } |
| else if(in_array($row["pfad"][0], $arrayBuchst)) { |
| if($row["pfad"][0] == "h") |
| { |
| $content .= '<option
value="'.$row["pfad"].'">'.$row["bezeichnung"].'</option>'; |
| } |
| elseif($row["pfad"][0] == "w") |
| { |
| $content .= '<option
value="http://'.$row["pfad"].'">'.$row["bezeichnung"].'</option>'; |
| } |
| |
| } |
| } |
| |
| $content .= '</select></form>'; |
| |
| return $content; |
| } |
|} |
[/PHP]
Ich bekomme einfach keinen Rückgabewert. Ich vermute das ich noch nicht
einmal in die Klasse hineinkomme!!!!
Kann mir da einer helfen????
MFG
More information about the TYPO3-german
mailing list