[TYPO3-UG Denmark] Sidens titel i toppen af subMenu

Søren Andersen hacksaw at zpeed.dk
Fri Mar 16 15:33:30 CET 2007


Hej Jeppe

temp.d1submenu = COA
temp.d1submenu {
 10 = TEXT
 10.data = leveltitle:-1
 10.wrap = <div class="navtitle">|</div> 
 20 = HMENU
 20 {
  entryLevel = 1
  1 = TMENU
  1 {
    wrap (
      <div id="submenu"><ul>|</ul></div>
    )
    
    NO {
      wrapItemAndSub = <li>|</li>
      ATagParams = class="sublevellink"
    }
    }
  }
}

Prøv det

Med venlig hilsen
Søren Andersen

-----Oprindelig meddelelse-----
Fra: typo3-ug-denmark-bounces at lists.netfielders.de
[mailto:typo3-ug-denmark-bounces at lists.netfielders.de] På vegne af Jeppe
Donslund
Sendt: 16. marts 2007 15:32
Til: TYPO3 Usergroup Denmark
Emne: [TYPO3-UG Denmark] Sidens titel i toppen af subMenu

En lille ting inden vi holder weekend.

 

Er der en der kan give mig et hint ....

 

Jeg vil gerne i toppen af min subMenu have titlen fra den side subMneu er
subMneu til stående.

 

Jeg har nuppet nedenstående fra typo3wizard.com og den skriver oghså den
aktive side, men jeg kan ikke få subMneuen med.

 

 

page.includeLibs.usermenu = fileadmin/activePageInMenu.inc

 

lib.subMenu = HMENU

lib.subMenu.special = userfunction

lib.subMenu.special.userFunc = user_menuFunc->makeMenuArray

lib.subMenu.special.userFunc.table = pages

lib.subMenu.special.userFunc.select.pidInList = 1

lib.subMenu.1 = TMENU

lib.subMenu.1 {

  NO {

    doNotLinkIt = 1

    stdWrap.field = user

    # Remove the # from the next line if you want to see which fields are
available!

    stdWrap.data = debug:data

    typolink.parameter.field = uid

    allWrap = <br>

  }

}

 

 

activePageInMenu.inc indeholder:

 

<?php 

class user_menuFunc { 

function makeMenuArray($content,$conf) { 

$menuArr = array(); 

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

$res = $this->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; 

} 

} 

return $menuArr; 

} 

} 

?>

 

 

 

 

Med venlig hilsen

Jeppe Donslund
Programmør

Tlf. dir. 7633 8824

Webmasters
Agtrupvej 51
6000 Kolding

Tlf. 7550 8877
jd at webmasters.dk <mailto:jd at webmasters.dk> 
www.webmasters.dk <http://www.webmasters.dk> 

 

 

 

_______________________________________________
TYPO3-UG-denmark mailing list
TYPO3-UG-denmark at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-denmark



More information about the TYPO3-UG-denmark mailing list