Group Discussions

Keith Mauck
Keith Mauck
@keith-mauck
8 years ago
67 posts
Where, which file, is the code that controls how many group discussions display on the group landing pages?
updated by @keith-mauck: 03/02/17 08:17:31PM
paul
@paul
8 years ago
4,326 posts
jrGroup item_detail.tpl template, about line 98 -

{jrCore_list module="jrGroupDiscuss" search="discuss_group_id = `$item._item_id`" order_by="_updated numerical_desc" limit="10" template=$dtpl _group=$item}

Set the limit parameter as desired.


--
Paul Asher - JR Developer and System Import Specialist
Developer Networks
Developer Networks
@developer-networks
8 years ago
566 posts
You can change it on that line but it wont effect or change the group discussion item list.

I believe the the default is set in php to 10 and controlled from the with in the module.
I think it would require changing it there.



updated by @developer-networks: 11/29/16 11:32:26AM
brian
@brian
8 years ago
10,148 posts
Developer Networks:
You can change it on that line but it wont effect or change the group discussion item list.

I believe the the default is set in php to 10 and controlled from the with in the module.
I think it would require changing it there.

It's not hard coded - the number to list is in templates:

jrGroupDiscuss/templates/item_index.tpl

and

jrGroup/templates/item_detail.tpl

Both are {jrCore_list} calls that can be tweaked to suit your needs.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Developer Networks
Developer Networks
@developer-networks
8 years ago
566 posts
Awesome I found it, Thanks!
Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Whoo-hooooo!
Another one of my wishes come true for our site, too.
Thank you for asking @keith-mauck and thanks all for additional questions and answers.

With a smile,
Strumelia
Strumelia
@strumelia
8 years ago
3,603 posts
If you use a custom skin, and if you have a template in your custom skin called "jrGroup_item_detail.tpl", then you can just change it in there and save. Change the "limit=10" part to a different number. Save the change, active checkbox, and reset cache. Worked for me. :)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

Tags