Contributor table with avatars, etc

I want to include the contributor table, with avatars, social accounts, etc., into my template. Or shorter: I want it like Tims freakshow. :wink:

I get a table, but only with raw names.

<tbody>
        {% if option.groupby == "group" %}
            {% for contributorGroup in episode.contributors({groupby: 'group', group: option.group, role: option.role}) %}
                <tr>
                    <th colspan="{{ colspan }}" class="contributor-group">
                        {% include '@contributors/avatar.twig' with {'avatar': contributor.avatar} only %} 
                        {% if contributorGroup.group %}
                            {{ contributorGroup.group.title }}
                        {% else %}
                            &nbsp;
                        {% endif %}
                    </th>
                </tr>
                {% for contributor in contributorGroup.contributors %}
                    {% if contributor.visible %}
                        {% include '@contributors/_contributor-table-row.twig' %}
                    {% endif %}
                {% endfor %}
            {% endfor %}
        {% else %}
            {% for contributor in episode.contributors({group: option.group, role: option.role}) %}
                {% if contributor.visible %}
                    {% include '@contributors/_contributor-table-row.twig' %}
                {% endif %}
            {% endfor %}
        {% endif %}
    </tbody>
</table>

You can put shortcodes into your template as well. I simply put [podlove-episode-contributor-list] in my template. It works fine. The shortcodes page lists some parameters to modify it.
By the way: You can find some of Tim’s templates on GitHub.

A bit off-topic:
I’ve experienced that the donations column gets displayed, even if the default should be “no”. @ericteubert, might this be a bug? I hat to set it explicitly to [podlove-podcast-subscribe-button donations="no"] to make the donations column disappear.

2 Likes

Well, either the documentation is wrong or the implementation :wink:
I will adjust the documentation.

1 Like