# Add a repeater to BbModules

**URL:** <https://community.wpbeaverbuilder.com/t/add-a-repeater-to-bbmodules/12358>\
**Category:** Developers\
**Tags:** beaver-builder\
**Created:** [July 3, 2020, 1:13pm UTC](https://community.wpbeaverbuilder.com/t/add-a-repeater-to-bbmodules/12358 "2020-07-03T13:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/daan/32/2415_2.png) [@Daan](https://community.wpbeaverbuilder.com/u/Daan)\
**Post date:** [July 3, 2020, 1:13pm UTC](https://community.wpbeaverbuilder.com/t/add-a-repeater-to-bbmodules/12358/1 "2020-07-03T13:13:33Z")

</div>

Hey everyone,

I was looking through the developer documentation but couldn’t really find it, so I was wondering if anyone here knows.

At the time of writing, I am making a module (source code below).  
That should contain a repeater field like this

→ Repeater  
----\> Title  
----\> Context box  
----\> Image upload

So I have the possibility to add multiple hero items.

#### 01

----\> Title  
----\> Context box  
----\> Image upload

#### 02

----\> Title  
----\> Context box  
----\> Image upload

etcetera

 ![image](https://community.wpbeaverbuilder.com/uploads/default/original/2X/5/5f1a8cfd539f6bda867ef26651d21b02ba56d50e.png)

```php

<?php

namespace Theme\Modules\RMC\BbModules;

class Hero extends \FLBuilderModule
{
    public function __construct()
    {
        parent::__construct([
            'name' => __('Hero', 'xxx'),
            'slug' => 'hero',
            'description' => __('Example', 'xxx'),
            'category' => get_bloginfo('title'),
            'dir' => dirname( __FILE__ ) . '/',
            'url' => get_template_directory_uri() . '/includes/bb-modules/' . basename(dirname( __FILE__ )) . '/',
            'editor_export' => true,
            'enabled' => true,
        ]);

    }

    public static function formSettings()
    {

        return [
            'general' => [ // Tab
                'title' => __('Quote', 'xxxx'), // Tab title
                'sections' => [ // Tab Sections
                    'tabs' => [
                        'general' => [
                            'title' => __('General', 'fl-builder'),
                            'sections' => [
                                'general' => [
                                    'title' => '',
                                    'fields' => [
                                        'label' => [
                                            'type' => 'text',
                                            'label' => __('Label', 'fl-builder')
                                        ]
                                    ]
                                ],
                            ]
                        ]
                    ]
                ]
            ]
        ];

    }
}

```

---

<div class="post-metadata">

**Author:** ![gerardagency](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@gerardagency](https://community.wpbeaverbuilder.com/u/gerardagency)\
**Post date:** [November 22, 2023, 5:02pm UTC](https://community.wpbeaverbuilder.com/t/add-a-repeater-to-bbmodules/12358/2 "2023-11-22T17:02:26Z")

</div>

Hey Team - I’m running into the same limitation with creating a custom accordion module. I want each accordion item repeater to also have an image field. Is there a solution for this?

---

<div class="post-metadata">

**Author:** ![pross](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pross/32/883_2.png) [@pross](https://community.wpbeaverbuilder.com/u/pross)\
**Post date:** [November 22, 2023, 6:42pm UTC](https://community.wpbeaverbuilder.com/t/add-a-repeater-to-bbmodules/12358/3 "2023-11-22T18:42:34Z")

</div>

Check the content module which is a good example.

---

<div class="post-metadata">

**Author:** ![system](https://community.wpbeaverbuilder.com/uploads/default/original/2X/9/9db1b183a7ea1efa26199a2a2b3511d742473dae.png) [@system](https://community.wpbeaverbuilder.com/u/system)\
**Post date:** [November 24, 2023, 6:43am UTC](https://community.wpbeaverbuilder.com/t/add-a-repeater-to-bbmodules/12358/4 "2023-11-24T06:43:17Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
