Custom Fields

Custom fields for you CMS Pages, RainLab.Blog and Rainlab.User

Back to Custom Fields Support

super.dev61838
super.dev61838

Hi, I'm having issue to display repeating fields. It's just not displaying anything if I use repeating fields.

Blog Post Extra Field

enter image description here

Custom Fields Settings

The file explorer is accessible using the button in left corner of the navigation bar. You can create a new file by clicking the **New file** button in the file explorer. You can also create folders by clicking the **New folder** button.

Syntax

{% for item in post.getRepeatField('items') %}
<div class="col-md-3 py-2">
    <span class="numbers odometer" id="1">{{ item.statsnumbers }} </span>
    <span class="symbol">{{ item.statssymbol}} </span>
      <h6>{{ item.statsdescription}}</h6>
</div>
{% endfor %}

Example Output with single fields

enter image description here

<div class="col-md-3 py-2">
    <span class="numbers odometer" id="1">{{ post.getField('statsnumbers')}} </span>
    <span class="symbol">{{ post.getField('statssymbol')}} </span>
     <h6>{{ post.getField('statsdescription')}}</h6>
</div>

Last updated

Vladimir
Vladimir

Hi!
Try like this:

{% for item in post.getRepeatField('statsnumbers') %}
<div class="col-md-3 py-2">
    <span class="numbers odometer" id="1">{{ item.statsnumbers }} </span>
    <span class="symbol">{{ item.statssymbol}} </span>
      <h6>{{ item.statsdescription}}</h6>
</div>
{% endfor %}
super.dev61838
super.dev61838

Vladimir said:

Hi!
Try like this:

{% for item in post.getRepeatField('statsnumbers') %}
<div class="col-md-3 py-2">
   <span class="numbers odometer" id="1">{{ item.statsnumbers }} </span>
   <span class="symbol">{{ item.statssymbol}} </span>
     <h6>{{ item.statsdescription}}</h6>
</div>
{% endfor %}

(Solved) Hi, It's working now. Thank you for helping.

1-3 of 3