Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeater Field Example? #47

Open
jmester13 opened this issue Mar 14, 2021 · 1 comment
Open

Repeater Field Example? #47

jmester13 opened this issue Mar 14, 2021 · 1 comment

Comments

@jmester13
Copy link

Wondering if someone could post how to use this with a repeater field? I'm trying to build a slideshow block where the user could upload multiple images.

@gallan
Copy link

gallan commented Aug 13, 2021

This is late, but, here's a repeater where the repeater field was named accordion with two fields inside of it:

{% for accordion in fields.accordion %}
  <a href="#" class="accordion-header">
     <div class="header">{{ accordion.accordion_label_header }}</div>
     <i class="fas fa-angle-right"></i>
  </a>
  <div class="accordion-content">
    {{ accordion.accordion_content }}
  </div>
{% endfor %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants