Personal tools
You are here: Home Documentation How To's How to get the email addresses of members of a group, using collective.easytemplate

How to get the email addresses of members of a group, using collective.easytemplate

by T. Kim Nguyen last modified Feb 13, 2012 12:20 PM

The expression to get the email addresses of all members of a group, in this case a group with the ID 'Registrar':

{% for m in portal.portal_groups.getGroupMembers('Registrar') %} {{  portal.portal_membership.getMemberById(m).getProperty('email', None) }}, {% endfor %}
Document Actions
  • Print this
  • Bookmarks