Liebes Forum,

ich möchte gerne mein TMENU ab der dritten Ebene erweitern:
Folgendes TS habe ich bereits:

page.10.marks.NAVI.30.3 {
itemArrayProcFunc = user_itemArrayProcFuncTest
itemArrayProcFunc.userFunc {
table = tx_pbprojects_cat_building_type
select {
pidInList = 18
selectField = uid,cat_title
}
}
NO {
stdWrap.field = cat_title
stdWrap.typolink.parameter = 30
stdWrap.typolink.additionalParams.cObject = COA
stdWrap.typolink.additionalParams.cObject {
10 = TEXT
10.field = uid
10.wrap = &tx_pbprojects_pi1[catUid]=|
}
stdWrap.htmlSpecialChars = 1
stdWrap.typolink.useCacheHash = 1
}
}

die userFunction, welche die Abfrage ausführt:

PHP-Code:
<?php
require_once(PATH_tslib.'class.tslib_pibase.php');
function 
user_itemArrayProcFuncTest($menuArr,$conf)    {
    
$lConf $conf["userFunc."];    
    if (
$lConf['table']) {        // if table is set,
        
$menuArr = array(); // resetting the array
        
$newsVars t3lib_div::GPvar('tx_pbprojects_cat_building_type');
        
$res $GLOBALS['TSFE']->cObj->exec_getQuery($lConf["table"],$lConf["select."]);        
        if (
$error $GLOBALS['TYPO3_DB']->sql_error()) {
            
$GLOBALS['TT']->setTSlogMessage($error,3);
        } else {
            
$GLOBALS['TT']->setTSlogMessage('NUMROWS: '.$GLOBALS['TYPO3_DB']->sql_num_rows($res));
            while (
$row $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
                
$menuArr[] = $row;
            }
        }
    } else {                                                    
            die (
'user_itemArrayProcFuncTest: you have not set a table. This is vital. '.
               
'Please use itemArrayProcFunc.userFunc.table inside NO in your Menu object.');
    }
    return 
$menuArr;
}
?>
Ich bekomme die richtige Anzahl der Datensätze zurück, aber das erste und letzte Element bekommen keinen cat_title und auch keine Link-Parameter.

Könnt Ihr mal draufschauen, woran das liegen könnte? Wäre Euch wirklich dankbar!

Schöne Grüße
Patricia