GOGETMUSCLE Community 記事一覧で記事詳細内に設置しているモジュールの値取得方法

記事一覧で記事詳細内に設置しているモジュールの値取得方法

こんにちは、どなたかわかる方いらっしゃいますでしょうか。

{% if contents %}

    {% for content in contents %}

  • {{ content.widgets.モジュール名.body.モジュールのフィールド }}
  • {% endfor %}

{% else %}

記事がありません。

{% endif %}

上記のように記述しているのですが詳細ページでモジュールの値を取ることができません。

{{ content.name }}などは表示されています。

rec_postだと表示できています。

以下記事では取得できているようでした。

https://community.hubspot.com/t5/%E8%87%AA%E7%A4%BE%E3%81%AE%E3%83%92%E3%83%B3%E3%83%88-%E3%83%8A%E3%83%AC%E3%83%83%E3%82%B8%E5%85%B1%E6%9C%89/%E3%83%96%E3%83%AD%E3%82%B0%E3%81%AE%E3%82%B5%E3%83%9E%E3%83%AA%E3%83%BC%E6%96%87%E3%82%92-%E4%BB%BB%E6%84%8F%E3%81%AE%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%A7%E8%A1%A8%E7%A4%BA%E3%81%95%E3%81%9B%E3%82%8B%E6%96%B9%E6%B3%95-%E9%96%8B%E7%99%BA%E8%80%85%E5%90%91%E3%81%91/m-p/330526

Leave a Reply

Your email address will not be published.

Related Post

Hello EveryoneHello Everyone

Hi Everyone, This is Sushant here! I’m taking the inbound course to upskill my business skills and understand POV of other people to become a better communicator. Looking forward to interesting