Friends 1.x

Legacy documentation for Friends 1.x.

The Friends:Group_Entries function allows you to display lists of channel entries that have been assigned/added to a particular group, using the Friends:Group_Entry_Add function.

{exp:friends:group_entries} content {/exp:friends:group_entries}

Parameters

Most of the parameters in the Channel:Entries tag are available here. Additionally, these exist as well:

friends_group_id=

friends_group_id="{segment_3}"

This parameter is available for you to hardcode, embed or pass from segment a Friends group ID.

group_name=

group_name="best_group_ever"

This parameter is available for you to hardcode, embed or pass from segment a Friends group short_name.

member_group_id=

member_group_id="5|6|9"

This parameter allows you to filter the results by one or more member group ID's of the entry author. Separate multiple groups with the pipe (|) character.

private=

private="no"

This parameter gives you the ability to stop the Friends:Group_Entries loop from returning any results if the group is set to Private. Specify no to activate this parameter. The default is yes.

Variables

Most of the variables in the Channel:Entries tag are available here.

Conditionals

Most of the conditionals in the Channel:Entries tag are available here.

Examples

The example code below will display a simple list of all channel entries that below to a group:

<ul>
{exp:friends:group_entries
    group_name="{segment_3}"
}
    <li><a href="{url_title_path='news/article'}">{title}</a></li>
    {if no_results}
        <li>This group currently has no entries assigned to it.</li>
    {/if}
{/exp:friends:group_entries}
</ul>