WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2: valid XHTML and CSS selectable menus
kweitzel:
Currently your SM2 should still try to create a list, since you don't pass on special tags for the $aMenuOpen and $aMenuClose
You should open and close a form around it, at the end, an Optionlist is a form element. And don't forget the "select" tag around it as well ... pass it on via the SM2 variables. They are explained in the readme file.
cheers
Klaus
hobo_geek:
Sorry its taken me so long to get back to you been busy with project work so have had little time to work on this.
I forgot to mention that I have other menus that use that need the SM2 to create a list. From what I've read from the documentation would I be correct in saying that I'd need need to define $aTopItemOpen in the include.php?
Sorry I'm new to the show_menu2 module and I get the basics of it but sometimes the documentation I think can be very unclear/confusing for newcomers.
brofield:
Why don't you have a look at the HTML that sm2 is generating? If you are still trying to solve the original problem, then follow kweitzel's advice and add entries for $aMenuOpen and $aMenuClose. Read the perhaps-confusing-but-all-you-got documentation for details of what these do. From your sample before you probably just want empty strings for these tags.
hobo_geek:
Ok I think their might be some confusion here about what I'm attempting to do. So I'll attempt to clear it up.
I want to have two menus in my baker template such as:
1. One menu created by the default
$aItemOpen = '
* [a][menu_title]</a>'
$aItemClose = '</li>',
2. The other which is an option list of all the pages available.
As you can see I can't change the $aItemOpen and $aItemClose to empty tags as the first menu won't work. I'm sorry if you were offended by my suggestion of the documentation being confusing for me as it took me quite a while to figure out exactly what you meant by the more advanced features. However, thank you to you both for helping me with my ongoing problem :-D
brofield:
Takes a lot more to offend me than that. Without concrete examples of what is wrong with something and suggestions for how it might be fixed then criticism is usually not constructive.
2 menus = 2 calls to sm2 = 2 sets of parameters.
i.e.
menu 1 = show_menu2( .. normal menu tags .. );
menu 2 = show_menu2( .. empty menu tags .. );
I don't see the problem.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version