0 Small Group List by Parent Group 5 DJ Grick posted 7 Years Ago Our small group coordinator asked me to create a page for each of our small groups hubs which lists all the groups in that hub, a description of the group, leaders names, leaders pictures(pulled from their profile), and meeting time/location. I have played with this some but am having group coming up with a best approach. Our small groups are all the same group type (small groups) and the hubs over them are all the same group type (Small Group Hubs). The issue with the Dynamic Data block for me was that most groups have multiple leaders so the query was returning different lines for each. I am new to SQL but couldn't figure out how I would list each leader under the correct group.select g.Name, g.description, m.Personid, m.GroupRoleId, p.nickname, p.LastName, p.PhotoIdfrom [group] gjoin [groupMember] M on g.id=m.groupidjoin [person] P on m.PersonId=p.idwhere g.parentgroupid=4758 and m.GroupRoleId=36The Group List block was out because it won't let me pull child groups of a parent and didn't allow formatting for the public site. The Group List Personalized Lava would one produce groups I am in. What eventually seemed most promising was using the Group Detail Lava, setting the group to the Small group hub, and including the child group but i could never get the Lava to work {% for groups in Group.Groups %} {{ Group.Groups.Name }}<br> {{ Group.Groups.Description}} {% endfor %}The other issue I know I will run into with the Group Detail Lava is trying to figure out how to get Leaders pictures...but there's got to be a way right? :-) Has anyone created anything like this or have any suggestions?
Michael Garrison 7 years ago OK, one last comment. On the demo site presently, there's a "small group section" group which is a child of another "small group section". The above code will show ALL child groups of the selected small group section, including other small group sections. If you want the display page to show ONLY actual small groups, you can add " && GroupTypeId == 25 " inside the single quote marks on the first line (after IsPublic == True ).
DJ Grick 7 years ago One other note from what Michael and I found in a slack conversation: this solution only works for users given securtiy access through Security/Entity Administration Rock.Model.Group.
DJ Grick 7 years ago Michael, this is awesome! I don't know if I would have ever figured it out! Thank you sooooo much. I know Lava is powerfully but keep struggling to wrap my mind around it.Anyway hopefully Thursday I'll have time to double back and add "IsPublic" and "IsActive" requirements...but can't get that working tonight.Thanks for all the work you did on this!