[TYPO3] jumpmenu from menu settings question
Nico Potvin
nico.potvin at kandesign.com
Thu Sep 7 13:37:08 CEST 2006
hi,
i altered the code, but it still renders only the half of the page.
any ideas?
don't know what to do next..
nico
On 07 Sep 2006, at 09:40, Peter Klein wrote:
> Hi Nico. Try changing the "CUR" into "ACT" at the bottom of the code..
> That's needed if you want to retain the selected menuitem, when moving
> into
> subpages (or using shortcuts)
>
> I know the code is working, as Im using it on a couple sites..
>
> --
> Peter Klein/Umloud Untd
>
> "Nico Potvin" <nico.potvin at kandesign.com> skrev i en meddelelse
> news:mailman.3606.1157613756.6911.typo3-english at lists.netfielders.de...
>> Hi peter,
>>
>> this is what i did:
>>
>> tempJumpNav = COA
>> tempJumpNav {
>> 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 = 97
>> 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>
>> }
>> }
>>
>> and add id to my template with subparts.q_jump < tempJumpNav
>>
>> but this doesn't work, it only renders the page to where the jumpmenu
>> has
>> to appear but no further.
>>
>> greets and thanks nico
>>
>> On 06 Sep 2006, at 16:33, Peter Klein wrote:
>>
>>> Hi Nico.
>>> Just name it "tempJumpNav" instead of "lib.jumpMenu" Then you should
>>> be
>>> able
>>> to use it as a direct replacement dfor the one you are using now.
>>>
>>> BTW: Remember to change the "568" value to the startingpage of the
>>> menu..
>>>
>>> -- Peter Klein/Umloud Untd
>>>
>>> "Nico Potvin" <nico.potvin at kandesign.com> skrev i en meddelelse
>>> news:mailman.2560.1157549393.6911.typo3-
>>> english at lists.netfielders.de...
>>>> Thanks for the script,
>>>>
>>>> But is this a part that needs to be generated and then imported to a
>>>> certain div in my html template,
>>>>
>>>> something like: subparts.q_jump < JumpMenu
>>>>
>>>> greets
>>>>
>>>> nico
>>>> On 06 Sep 2006, at 15:16, Peter Klein wrote:
>>>>
>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
>
> _______________________________________________
> 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