[TYPO3] custom submenu
Stano Paška
stano.paska at gmail.com
Mon Mar 24 07:13:37 CET 2008
Thank you Peter.
In one example it was 0 and in other 1.
With TSRef documentation I cant fix it and tslib_menu sources are too
complicated at first sight :-)
Stano.
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