Page 1 of 1
A few CMSMS Sites
Posted: Wed May 25, 2011 1:41 pm
by oliverseddon
Re: A few CMSMS Sites
Posted: Sat May 28, 2011 4:20 am
by elkman
Very nice clean sites. Can I ask how you created the accordian navigation menu on the
www.outdoor-revolution.com website? I'm working on a site with a similar amount of content but little menu space and this would work perfect.
Thank you for any suggestion.
Elkman
Re: A few CMSMS Sites
Posted: Sat May 28, 2011 9:07 am
by oliverseddon
Thanks.
Here's the global content block code used for the nav:
Code: Select all
{literal}
<__script__ type="text/javascript">
function updateNav(num) {
$('#hidivnum').load('ajax/setCookie.php?num='+num);
}
</__script>
{/literal}
<ul id="accordion-nav">
<li><a href="#new-wave" id="nav-new-wave-awnings" class="heading" onclick="updateNav(0);">
<span class="top"></span>
<span class="main"><span class="text">Traditional Awnings</span> <span class="chevrons">»</span>
<div class="clear"></div>
</span>
<span class="btm"></span>
</a>
<ul id="new-wave">
{Products category='New Wave Awnings' detailpage='product-detail-new-wave'}
</ul>
</li>
<li><a href="#lightweight" id="nav-lightweight-awnings" class="heading" onclick="updateNav(1);">
<span class="top"></span>
<span class="main"><span class="text">Lightweight Awnings</span> <span class="chevrons">»</span>
<div class="clear"></div>
</span>
<span class="btm"></span>
</a>
<ul id="lightweight">
{Products category='Lightweight Awnings' detailpage='product-detail'}
</ul>
</li>
<li><a href="#drive-away" id="nav-drive-away-awnings" class="heading" onclick="updateNav(2);">
<span class="top"></span>
<span class="main"><span class="text">Drive Away Awnings</span> <span class="chevrons">»</span>
<div class="clear"></div></span>
<span class="btm"></span>
</a>
<ul id="drive-away">
{Products category='Drive Away Awnings' detailpage='product-detail'}
</ul>
</li>
<li><a href="#utility-tents" id="nav-utility-tents-awnings" class="heading" onclick="updateNav(3);">
<span class="top"></span>
<span class="main"><span class="text">Utility Tents</span> <span class="chevrons">»</span>
<div class="clear"></div></span>
<span class="btm"></span>
</a>
<ul id="utility-tents">
{Products category='Utility Tents' detailpage='product-detail'}
</ul>
</li>
<li><a href="#accessories" class="heading" onclick="updateNav(4);">
<span class="top"></span>
<span class="main"><span class="text">Accessories</span> <span class="chevrons">»</span>
<div class="clear"></div></span>
<span class="btm"></span>
</a>
<ul id="accessories">
{Products category='Accessories' detailpage='product-detail'}
</ul>
</li>
<li><a href="#customer-care" class="heading" onclick="updateNav(5);">
<span class="top"></span>
<span class="main"><span class="text">Customer Care</span> <span class="chevrons">»</span>
<div class="clear"></div></span>
<span class="btm"></span>
</a>
<ul id="customer-care">
<li>{cms_selflink page="customer-services" text="» Customer Services"}</li>
<li>{cms_selflink page="instructions" text="» Instructions"}</li>
<li>{cms_selflink page="frames-carbonlite" text="» Frames/Carbonlite"}</li>
<li>{cms_selflink page="spares-request-form" text="» Spares Request Form"}</li>
</ul>
</li>
<li><a href="#downloads" class="heading" onclick="updateNav(6);">
<span class="top"></span>
<span class="main"><span class="text">Downloads</span> <span class="chevrons">»</span>
<div class="clear"></div></span>
<span class="btm"></span>
</a>
<ul id="downloads">
<li>{cms_selflink page="press-articles" text="» Press Articles"}</li>
<li>{cms_selflink page="brochure-downloads" text="» Brochure Downloads"}</li>
</ul>
</li>
</ul>
<div id="hidivnum"></div>
Then all you'd need to include would be call to a bunch of jquery like this:
Code: Select all
<__script__ type="text/javascript" src="scripts/slideFollow/jquery-1.5.js"></__script>
<__script__ type="text/javascript" src="scripts/slideFollow/jquery.easing.1.3.js"></__script>
<__script__ type="text/javascript" src="scripts/slideFollow//jquery.scroll-follow.js"></__script>
<__script__ type="text/javascript" src="scripts/slideFollow/jqueryScroll.js"></__script>
<__script__ src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/jquery-ui.min.js" type="text/javascript"></__script>
[\code]
Then the CSS, but you can track that down from the source of the site.
I hope that helps.
Thanks
Oliver
Re: A few CMSMS Sites
Posted: Sat May 28, 2011 12:13 pm
by elkman
Oliver,
Thank you very much for your help!
I'll be rebuilding our local animal rescue website very shortly and will use this menu on their new site. I'll send you a link when it gets going so you can see how your menu will be used. We have adopted four small dogs from this local rescue.
Bill
Re: A few CMSMS Sites
Posted: Sun May 29, 2011 6:41 pm
by oliverseddon
It's a bit of jquery written for that site. If you look In the source you'll see the link to the featurelist JS file, and the bit of JS in the head to initialise it.
Hope that helps.