Hi,

can you help me, please?

I studied TS snippets from typo3wizard and make my own custom submenu.
It works, but in html source code I see ugle empty <a> tags before my items.
Do you know how to remove them?

Site: http://www.warriors.sk/vysledky/?no_cache=1
TS: http://www.warriors.sk/fileadmin/templates/main.ts
user function:

class user_functions {

        function user_menuItemSPHockeyStats($content, $conf) {

                $lConf = $conf['userFunc.'];

                $menuArr = array();
                $actuid = 0;

                if ($lConf['actextkey'] && $lConf['actextvar']) {
                        $getval = t3lib_div::_GET();
                        $actuid = 
$getval[$lConf['actextkey']][$lConf['actextvar']];
                }

                $enable = $this->cObj->enableFields($lConf['table']);
                if ($lConf['select.']['where'] == '') {
                        $enable = substr($enable, 4);
                }
                $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery1('*', 
$lConf['table'],
$enable, $lConf['select.']['groupBy'], $lConf['select.']['orderBy']);

                while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {

                        $row['title'] = $row['name'];

                        if ($actuid != 0 && $actuid == $row['uid']) {
                                $row['ITEM_STATE'] = 'ACT';
                        } else {
//                              $row['ITEM_STATE'] = 'NO';
                        }
//var_dump($row);
                        $menuArr[] = $row;
                }
var_dump($menuArr);
                return $menuArr;
        }
}

Thanks for your answers.

Stano.
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Reply via email to