[TYPO3] custom submenu

Stano Paška stano.paska at gmail.com
Mon Mar 24 08:27:05 CET 2008


Aaaa, I found your comment here:
http://www.typo3wizard.com/en/snippets/menus/create-menus-using-data-from-other-tables-than-pages-v2.html
:-)

On Mon, Mar 24, 2008 at 12:29 AM, Peter Klein <peter at umloud.dk> wrote:
> 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.
>
>
>  _______________________________________________
>  TYPO3-english mailing list
>  TYPO3-english at lists.netfielders.de
>  http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list