[TYPO3] custom submenu

Peter Klein peter at umloud.dk
Mon Mar 24 00:29:01 CET 2008


Hi Stano.

In your TS, change:

doNotLinkIt = 0

Into

doNotLinkIt = 1

--
Peter Klein


"Stano Paska" <stano.paska at gmail.com> wrote in message 
news:mailman.11929.1206280709.5943.typo3-english at lists.netfielders.de...
> 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. 




More information about the TYPO3-english mailing list