Jump to content

reduce the number of categories displayed


Recommended Posts

Hello everyone,

I would like to know whether it's possible to customize my forum to reduce the number of categories being displayed.

My forum needs to have hundreds of categories. I would like to truncate/limit how many are displayed. See attachment. Is something like that or similar possible? The list of categories seen in the attachment is much longer, and it doesn't look good at all. So I was thinking of reducing the number of categories being displayed to 10 or a number that could be changed in ACP. And then have a link to SEE ALL if the user wants.

Thanks a lot

image.thumb.png.deaec324f575dc0ca7b832accba6bcb1.png

 

image.thumb.png.5eae49d842423569415b0045704e6633.png

Link to comment

Yep, template edit - this will do it in the default theme...

Template: forums -> front -> index -> forumRow

Locate:

			{{if $forum->hasChildren()}}
				<ul class="ipsDataItem_subList ipsList_inline">

To (change value for 'data-ipsTruncate-size' to suit):

			{{if $forum->hasChildren()}}
				<ul class="ipsDataItem_subList ipsList_inline" data-ipsTruncate="true" data-ipsTruncate-size="10 lines" data-ipstruncate-expandtext="See all" data-ipstruncate-type="hide">
Link to comment
4 hours ago, Nathan Explosion said:

Yep, template edit - this will do it in the default theme...

Template: forums -> front -> index -> forumRow

Locate:


			{{if $forum->hasChildren()}}
				<ul class="ipsDataItem_subList ipsList_inline">

To (change value for 'data-ipsTruncate-size' to suit):


			{{if $forum->hasChildren()}}
				<ul class="ipsDataItem_subList ipsList_inline" data-ipsTruncate="true" data-ipsTruncate-size="10 lines" data-ipstruncate-expandtext="See all" data-ipstruncate-type="hide">

Awesome! It worked seamlessly! I really appreciate your help! Thanks so much!!!!

Link to comment
  • Recently Browsing   0 members

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