Skip to content

@bliswebagency /cat_tackon
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Add Categories to Structure Navigation (#eecms)
{!-- MAKE SURE UNIQUE IDs = YES --}
{exp:structure:nav add_level_classes="yes" add_span="yes" add_unique_ids="yes" css_class="nav" css_id="nav_full" current_class="active" include_ul="yes" max_depth="5" mode="full" status="Open"}
{!-- This technique uses GWCODE Cats but you could do it the normal way --}
{!-- we're hiding the div that contains the stuff we want --}
<div style="display:none" id="prod_cats">
{!-- This technique uses GWCODE Cats but you could do it the normal way --}
{exp:gwcode_categories channel="products" incl_self="no" cat_id="70"}
{!-- The URIs are hard coded (with the exception of the cat id) --}
<a href="/site/cat_test/{cat_url_title}">{cat_name}</a>
{/exp:gwcode_categories}
</div>
{!-- IF YOU CHANGE ANY IDs, REFLECT THE CHANGES HERE --}
<script>
$(function(){
var stuff = $('#prod_cats').html();
$('#nav_full-applications').append(stuff)
});
</script>
@bliswebagency

FYI: You'll need JQuery to pull this off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.