グループインデックスページにユーザーの自己紹介を追加する方法は?

こんにちは、

グループ一覧ページの情報をテーマコンポーネントでカスタマイズしようとしています。各メンバーのユーザーバイオを追加したいと考えています。オーバーライドするテンプレートは見つかり、この方法で変更を加えることはできていますが、user_profiles テーブルからバイオデータを取得する方法がわかりません。

現時点でのコードは以下の通りです:

      <tbody>
        {{#each model.members as |m|}}
          <tr>
            <td class='avatar'>
              {{user-info user=m skipName=skipName}}
            </td>

            <td>
              <span class="text">{{m.bio_excerpt}}</span>
            </td>

{m.user_profile.bio_excerpt} も試しましたが、どちらの場合もデータが取得できません。この情報はテーマコンポーネントから利用可能でしょうか?もし可能であれば、どのようにアクセスすべきでしょうか?

よろしくお願いいたします。

It’s not. If you go to /groups/<name>/members.json, you’ll see that you only have access to these properties

  • id
  • username
  • name
  • avatar_template
  • primary_group_name
  • primary_group_flair_url
  • title
  • last_posted_at
  • last_seen_at
  • added_at

Ah darn. Is there any way I can query this data, or would this require a plugin?

You will have to use a plugin to add the bio_excerpt property to the GroupUserSerializer.