Question

Photo of Jeremy Turgeon

0

Display Parent Information In Group Toolbox

I'm creating a separate group toolbox so youth leaders can see the contact information for student's parents. Is there a way to pull that information from Lava and display it on a Group Detail Lava block?

I'd like it to show parent(s) Name, Address, Phone and Email.


Thanks!

  • Photo of Nick Airdo

    0

    Yes, using the Parents Lava filter, you should be able to follow this example to show the items your looking for:

        <h2>Parents</h2>
        {% for gm in Group.Members %}
        Parents of {{ gm.Person.FullName }}: <br/>
        <ul>
        {% assign parents = gm.Person | Parents %}
        {% for person in parents %}
           <li>{{ person.FullName }}</li>
        {% endfor %}
        </ul>
    {% endfor %}
    

    Q1362_GroupDetailWithParents.png
    • Jeremy Turgeon

      It's pretty messy but I ended up taking your awesome code and making this:


      						{% if member.GroupRole.IsLeader %}

      {% else %}
      <h4>Parents</h4>


      {% assign parents = member.Person | Parents %}
      {% for person in parents %}
      &lt;ul style=&quot;list-style-type:none&quot;&gt;
      &lt;li&gt;&lt;strong&gt;{{ person.FullName }}&lt;/strong&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;p&gt;{{ person | PhoneNumber:&#39;Home&#39; }}&lt;/p&gt;
      &lt;p&gt;{{ person.Email }}&lt;/p&gt;
      &lt;p&gt;{{ person | Address:&#39;Home&#39; }}&lt;/p&gt;
      {% endfor %}
      {% endif %}
  • Photo of Eddie Holeman

    0

    Jeremy,

    I have been looking into including parent information group toolbox for children's groups.  Wondering where you placed your parent information.  Did you add an additional tab in that block like Roster | Attendance | Parents?  Also, besides listing the parents, I am interested in being able to send communication to parents.  Have you done anything like that?

    Thanks.