View Single Post
  #10  
Old 04-29-2014, 01:46 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: dropdown speedbar

OK! We got it figured out. The final working code:
Code:
{if $pages_menu} <ul id="flexmenu1" class="flexdropdownmenu"> {foreach from=$pages_menu item=p name=page} {if $p.show_in_menu eq 'Y' && $p.orderby gte "100" && $p.orderby lte "199" } <li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp} </a></li> {/if} {/foreach} </ul> <ul id="flexmenu2" class="flexdropdownmenu"> {foreach from=$pages_menu item=p name=page} {if $p.show_in_menu eq 'Y' && $p.orderby gte "200" && $p.orderby lte "299" } <li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp} </a></li> {/if} {/foreach} </ul> {/if} {if $speed_bar} <div class="tabs{if $all_languages_cnt gt 1} with_languages{/if} monitor"> <ul> {foreach from=$speed_bar item=sb name=tabs} {strip} <li{interline name=tabs}> <a href="{$sb.link|amp}"{if $sb.title eq "Cemetery Memorials"} data-flexmenu="flexmenu1" {elseif $sb.title eq "Support"} data-flexmenu="flexmenu2" {elseif $sb.title eq "Purchase"} data-flexmenu="flexmenu3" {elseif $sb.title eq "About Us"} data-flexmenu="flexmenu4" {/if}> {$sb.title} <img src="{$ImagesDir}/spacer.gif" alt="" /></a> <div class="t-l"></div><div class="t-r"></div> </li> {/strip} {/foreach} </ul> </div> {/if}

A key part is that the speed bar menu is linked to the pages menu, based on the name of the speed bar item and the position value of the page.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote