WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: netash on February 17, 2012, 11:19:01 AM

Title: Footer site map as a table menu
Post by: netash on February 17, 2012, 11:19:01 AM
Hallo friends,

I am trying to show in the footer the site map in coulombs as found in many websites.
Something like that:

products    articals   about us
product1    artical1   location
product2    artical2   workers

the childs of each item under it and all showing.

Do you have a solution?

Thanks,
Title: Re: Footer site map as a table menu
Post by: crnogorac081 on February 17, 2012, 04:57:59 PM
Take a look at show_menu2 examples..
Title: Re: Footer site map as a table menu
Post by: stepenlock on February 23, 2012, 08:07:10 AM
Use dropdown menu , get your fountionality through simple CSS, HTML menu format or in JavaScrip.


Title: Re: Footer site map as a table menu
Post by: netash on March 02, 2012, 10:21:02 AM
Thanks,
My problem now is how to show all the children all the time (not only when mouse over their father.

I assume it is in thi part of CSS:
 
Code: [Select]
/* Show and hide */
#nav1 .menu li:hover ul, #nav1 .menu li a:focus ul, #nav1 .menu li.subMenu ul {display: block;}
#nav1 .menu li ul ul { display: none;}
#nav1 .menu li:hover ul ul, #nav1 .menu li.subMenu ul ul {display: none;}
#nav1 .menu li:hover>ul, #nav1 .menu li li:hover>ul, #nav1 .menu li.subMenu>ul, #nav1 .menu li li.subMenu>ul {display: block;  z-index: 1000;}

What should I do?
Title: Re: Footer site map as a table menu
Post by: nibz on March 02, 2012, 03:07:42 PM
Nope. It has something to do whit your show menu code.

Can you paste your show menu code here?
Title: Re: Footer site map as a table menu
Post by: netash on March 18, 2012, 09:51:49 AM
Thanks, it is:

Code: [Select]
<?php show_menu2(12SM2_ALLSM2_ALL'<li><a href="[url]" class="[class] navlev[level]">[menu_title]</a>'"</li>"'<ul class="ullev[level]">'"</ul>"true'<ul id="header_menu1" class="menu"><li class="home"><a href="'.WB_URL.'"> </a></li>');
Title: Re: Footer site map as a table menu
Post by: nibz on March 20, 2012, 03:59:48 PM
Okay,

You are now listing the siblings of the page with number two,

You'll just need to change the third selector from SM2_ALL (which 'says' that it will list all levels) to SM2_START+1,

And maybe it would be nice to adjust the options tag (number 4) to ALL,

So the code will be:
Code: [Select]
show_menu2(1, 2, SM2_START+1, SM2_ALL '<li><a href="[url]" class="[class] navlev[level]">[menu_title]</a>', "</li>", '<ul class="ullev[level]">', "</ul>", true, '<ul id="header_menu1" class="menu"><li class="home"><a href="'.WB_URL.'"> </a></li>')

Maybe it's handy to take a look at: (just like crnogorac081 said)
http://code.jellycan.com/sm2test/


Hope this works for you!
Title: Re: Footer site map as a table menu
Post by: netash on April 09, 2012, 12:59:31 PM
Found the solution,
I replaced in one place of the css a "display: none" to "display: block".

As simple as that