menu in dropdown-list

BerndJM

Yes of course.
It's in principle the same as descibed here -> http://help.websitebaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php

The difference:
you use show_menu2 and you have to handle two forms eg. jump1 and jump2

Regards Bernd
In theory, there is no difference between theory and practice. But, in practice, there is.

peturkirke

thank you very much

is it also possible to have some of the menu-items in one drop-down list, and the rest of them in another drop-down list ?

vyni

Klar, hast recht.

beim ausprobieren hab´ ich´s doppelt eingesetzt dann aber irgendwas nicht zurückbenamst. korrigiert.

BerndJM

Hi viny,

just a little correction:

<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">

:wink:

Regards Bernd
In theory, there is no difference between theory and practice. But, in practice, there is.

vyni

#2
Hi,
jo it is possible - just add it to the template where it should appear.

this is the code

<form name="jump">
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<?php
show_menu2
(
        
$aMenu          0,
        
$aStart         SM2_ROOT,
        
$aMaxLevel      SM2_ALL,
        
$aOptions       SM2_ALL,
         
$aItemOpen      '<option value="[url]">[menu_title]</option>',
        
$aItemClose     '',
        
$aMenuOpen      '',
        
$aMenuClose     '',
        
$aTopItemOpen   '',
        
$aTopMenuOpen   '<option value="1">please choose</option>'
        
);
?>

</select>
</form>


That´s it - enjoy!

peturkirke

Is it possible to show the menu-items in a dropdown list (<select> <option value...) ?

and how do i do it ?