• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RM 1.1 How do I limit the max featured resources per category?

#1
I have searched but cannot find the answer. How do I limit the max number of "featured resources" to a max of 2 above a resource category.

For example (from XenFORO):
fddf.jpg

For some reason my site tries to show a lot more and of course you can't see them though you do see part of a box for the next row.
 

Mike

XenForo developer
Staff member
#2
There is no option to limit them. If you're seeing the next row, that sounds like a style issue that needs to be tweaked.
 

Brogan

XenForo moderator
Staff member
#3
The limit is hard coded to 6 in the PHP.

The reason only two are showing is that's all that will fit in a single row due to the page width.
 

Dadparvar

Well-known member
#4
Isn't it possible to change it now?
My forum is showing in this way:
Untitled.png

But I want to limit it to 3 or 6 but 3 in each row (now it shows 4 in top and 2 below them)
How you limited it to 3?

Thanks
 

Mike Creuzer

Well-known member
#5
Isn't it possible to change it now?
My forum is showing in this way:
View attachment 119488

But I want to limit it to 3 or 6 but 3 in each row (now it shows 4 in top and 2 below them)
How you limited it to 3?

Thanks
Since it is hardcoded, one thing you could do is set a height. Such as in your theme there. In stock UI.X this code works:

Code:
.featuredResourceList {height: 112px;}
Which is essentially what the default theme does. It just sets a height and an overflow hidden.