Jump to content

Recommended Posts

Posted

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 1474038343_databaseCategoryMenu.jpg.19dd085e1b37a08e748dfea80885dc68.jpg  

 

how can i can show all the  category ?

 

 

Posted

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"} &nbsp;<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)

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...