DoorMadeEasy Posted July 30, 2020 Posted July 30, 2020 in the database Category Menu i have Main category and subcategory the subcategory it show only 4 category the 5 it say And 1 more see the photo in the attachment how can i can show all the category ?
Nathan Explosion Posted July 31, 2020 Posted July 31, 2020 Edit the following template in your theme: cms -> front -> widgets -> Categories Remove this from the only place it exists: ipsTruncate ipsTruncate_line Change this: {{if $counter >= 5}} <a href='{$category->url()}' class='ipsSideMenu_item'><span class='ipsType_light ipsType_small'>{lang="and_x_more" pluralize="\count( $category->children() ) - 4"}</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}} to this: <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> Remove this: <p class='ipsType_center'> <a href='{$url->setQueryString('show','categories')}' class=''>{lang="cms_show_categories"} <i class='fa fa-caret-right'></i></a> </p> Save, and wait for cache to update (or run the support tool to clear cache immediately) bfarber 1
Recommended Posts