[TYPO3] jumpmenu from menu settings question

Peter Klein peter at umloud.dk
Wed Sep 6 15:16:29 CEST 2006


Hi Nico. Another way to do it, is to generate the jumpmenu "manually" by 
creating a modified TMENU.
That way you have more control of the menuitems etc.

Something like this:

-- cut --
lib.jumpMenu = COA
lib.jumpMenu {
  wrap = <select onchange="if (this[this.selectedIndex].value!=0) 
document.location.href=this[this.selectedIndex].value">|</select>
  10 = TEXT
  10.value = Choose your brand
  10.wrap = <option value="0">|</option>

  20 = HMENU
  20.special = directory
  20.special.value = 568
  20.1 = TMENU
  20.1 {
    NO {
      doNotLinkIt = 1
      stdWrap.cObject = COA
      stdWrap.cObject {
        10 = COA
        10 {
          wrap = <option value="|">
          10 = TEXT
          10.data = getIndpEnv:TYPO3_REQUEST_HOST
          10.wrap = |/
          20 = TEXT
          20.typolink.parameter.field = uid
          20.typolink.returnLast = url
        }

        20 = TEXT
        20.field = title
        20.wrap = |</option>
      }
    }
    CUR < .NO
    CUR = 1
    CUR.stdWrap.cObject.10.wrap =<option value="|" selected=selected>
  }
}
-- cut --

-- 
Peter Klein/Umloud Untd

"Nico Potvin" <nico.potvin at kandesign.com> skrev i en meddelelse 
news:mailman.2442.1157545832.6911.typo3-english at lists.netfielders.de...
> this should work but didn't
> i added the showactivelink thingy, but without success
>
> but how do i add the standard top choose your brand link that doesn't  do 
> anything?
>
> tempJumpNav = HMENU
> tempJumpNav {
>   special = directory
>     # id of root page where the menu starts
>   special.value = 97
>   1=JSMENU
>   1.target=_parent
>   1.showActive = 1
>   1.firstLabelGeneral =Choose your brand..
> }
>
> greets
>
> nico
>
> On 06 Sep 2006, at 14:12, Peter Klein wrote:
>
>> Hi Nico.
>> Take a look at the JMENUITEM properties. There's one called  "showActive"
>> which is the one you need..
>> http://typo3.org/documentation/document-library/references/ 
>> doc_core_tsref/current/view/10/12/
>>
>> -- 
>> Peter Klein/Umloud Untd
>>
>> "Nico Potvin" <nico.potvin at kandesign.com> skrev i en meddelelse
>> news:mailman.2361.1157543735.6911.typo3-english at lists.netfielders.de...
>>> Hi,
>>>
>>> i am using the following typoscript to generate a jumpmenu from the 
>>> tree:
>>>
>>> tempJumpNav = HMENU
>>> tempJumpNav {
>>>   special = directory
>>>     # id of root page where the menu starts
>>>   special.value = 56
>>>   1=JSMENU
>>>   1.target=_parent
>>>   1.firstLabelGeneral =Choose your brand..
>>> }
>>>
>>> but i would like to make some changes. This script always shows 
>>> "choose
>>> your brand..."  and jumps to the section you choose, but i would like 
>>> to
>>> alter it in such a way that i shows the section you are in by default 
>>> and
>>> "choose your brand" as an non jumping item.
>>>
>>> any ideas?
>>>
>>> greets
>>>
>>> nico
>>>
>>> --
>>> Nico Potvin
>>>
>>> KAN Design
>>> Antwerpen - Belgium
>>> Phone: +32 (0)3 203 41 69
>>> Fax: +32 (0)3 225 14 05
>>> E-mail: nico.potvin at kandesign.com
>>> http://www.kandesign.com
>>>
>>
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
> --
> Nico Potvin
>
> KAN Design
> Antwerpen - Belgium
> Phone: +32 (0)3 203 41 69
> Fax: +32 (0)3 225 14 05
> E-mail: nico.potvin at kandesign.com
> http://www.kandesign.com
> 





More information about the TYPO3-english mailing list