Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Gauravk Posted April 7, 2016 Posted April 7, 2016 How to have clickable dropdown arrow to display the sub category of car models on demand. By default it loads the sub category and that's not what I want it as I will be having 250+ car models to display on right nav. https://carnity.com/classifieds/ Any workable solution is highly appreciated. Thanks Current right side category template (if this helps) {{$catClass = '\IPS\cms\Categories' . \IPS\cms\Databases\Dispatcher::i()->databaseId;}} {{$categories = $catClass::roots();}} {{if !empty( $categories )}} <h3 class='ipsWidget_title ipsType_reset'>{lang="categories"}</h3> <div class='ipsSideMenu ipsAreaBackground_reset ipsPad_half'> <ul class='ipsSideMenu_list'> {{foreach $categories as $category}} <li> <a href="{$category->url()}" class='ipsSideMenu_item ipsTruncate ipsTruncate_line'><span class='ipsBadge ipsBadge_style1 ipsPos_right'>{expression="\IPS\cms\Records::contentCount( $category )"}</span><strong class='ipsType_normal'>{$category->_title}</strong></a> {{if $category->hasChildren()}} <ul class="ipsSideMenu_list"> {{foreach $category->children() as $idx => $subcategory}} <li> {{if $idx >= 5}} <a href='{$category->url()}' class='ipsSideMenu_item'><span class='ipsType_light ipsType_small'>{lang="and_x_more" sprintf="count( $category->children() ) - 5"}</span></a> {{break;}} {{else}} <a href="{$subcategory->url()}" class='ipsSideMenu_item ipsTruncate ipsTruncate_line'><strong class='ipsPos_right ipsType_small'>{expression="\IPS\cms\Records::contentCount( $subcategory )"}</strong>{$subcategory->_title}</a> {{endif}} </li> {{endforeach}} </ul> {{endif}} </li> {{endforeach}} </ul> <p class='ipsType_center'> <a href='{$url->setQueryString('show','categories')}' class=''>{lang="cms_show_categories"} <i class='fa fa-caret-right'></i></a> </p> </div> {{endif}}
Gauravk Posted April 20, 2016 Author Posted April 20, 2016 Im ready to pay 100 USD for this feature alone. Any idea where I can post custom order / project. This page isnt working anymore: https://invisionpower.com/resources/project
Recommended Posts
Archived
This topic is now archived and is closed to further replies.