Jump to content

database Category Menu block


Recommended Posts

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)

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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