Getting repeater items using content.widgets

ScottD22
Contributor | Elite Partner

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
dennisedson
Community Manager

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

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes
webdew
Top Contributor | Diamond Partner

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