WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • show_menu2() another question please
  • Print
Pages: [1]   Go Down

Author Topic: show_menu2() another question please  (Read 4341 times)

Availor

  • Guest
show_menu2() another question please
« on: July 15, 2008, 09:49:12 PM »
I was trying to play around with the show_menu2() code.

Please help me out - how would you invoke this code with the show menu?
Here is the example;

Code: [Select]
<li><a href="#nogo"><b>Joseph Turner</b><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul class="sub">
        <li><a href="#nogo">Fishermen at Sea</a></li>
        <li><a href="#nogo">The Shipwreck</a></li>
        <li><a href="#nogo">The Vale of Ashburnham</a></li>
        <li><a href="#nogo">Crossing the Brook</a></li>
    </ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

I've tried different methods but they all didn't bring the wanted results

Method 1 (using [if(level == 0) { <ul id = "sub">
  • [a][men_title][/a]
)
I That didn't change the li into ul - I think I just messed it up.

Method 2 (copied from multiflex templat0
Code: [Select]
?php show_menu2(1, SM2_ROOT, SM2_ALL,SM2_ALL,'<li>[a][menu_title]
                        [if(level == 0){<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>}]
                        [if(leve == 1){</a>}]
                      {</li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->}]','','',''); ?>

Anyway, if someone is an expert in show_menu2() maybe you can help me out here  :roll:

Cheers  :-D
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • show_menu2() another question please
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2