CMS Development

ScottD22
Contributor | Diamond Partner
Contributor | Diamond Partner

Getting repeater items using content.widgets

Hey I'm trying to get a custom module repeater items from a post template to show on a listing template using content.widgets. I'm struggling to get them to pull through, has anybody had any exp with this type of thing before?

 

Thanks

0 Upvotes
2 Replies 2
webdew
Guide | Diamond Partner
Guide | Diamond Partner

Getting repeater items using content.widgets

Hi @ScottD22 ,

Try to add like this as per your requirements

<div class="month-container">
{% if content.widgets.simple_text_field.body.value %}
<div class="single-line"><h4>{{ content.widgets.simple_text_field.body.value }}</h4></div>
{% endif %}
<h4 class="date-module">{{content.widgets.add_month.body.value }}</h4>
</div> 

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Getting repeater items using content.widgets

@albertsg@Chris-M  , any chance you all have played around with this before?

0 Upvotes