OptimusBain Posted February 6, 2021 Posted February 6, 2021 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
Nathan Explosion Posted February 8, 2021 Posted February 8, 2021 Easily achieved with a template edit, I reckon...post a link to your site please. OptimusBain 1
Nathan Explosion Posted February 8, 2021 Posted February 8, 2021 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"> OptimusBain 1
OptimusBain Posted February 8, 2021 Author Posted February 8, 2021 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!!!!
Recommended Posts