CMS Development

ScottD22
Colaborador | Partner nivel Diamond
Colaborador | Partner nivel Diamond

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 Me gusta
2 Respuestas 2
webdew
Guía | Partner nivel Diamond
Guía | Partner nivel Diamond

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 Me gusta
dennisedson
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Getting repeater items using content.widgets

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

0 Me gusta