# Using kirby builder to add new radio-button options from the panel?

**URL:** <https://forum.getkirby.com/t/using-kirby-builder-to-add-new-radio-button-options-from-the-panel/6923>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 12, 2017, 10:44am UTC](https://forum.getkirby.com/t/using-kirby-builder-to-add-new-radio-button-options-from-the-panel/6923 "2017-03-12T10:44:46Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![afincato](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/afincato/32/3446_2.png) [@afincato](https://forum.getkirby.com/u/afincato)\
**Post date:** [March 13, 2017, 11:19pm UTC](https://forum.getkirby.com/t/using-kirby-builder-to-add-new-radio-button-options-from-the-panel/6923/8 "2017-03-13T23:19:36Z")

</div>

Thanks! Really useful to have an idea of how to extend it.

Now I made it work by using Kirby Module + Kirby Sortable + Kirby Builder, and it’s really great. Amazing.

I have encountered a problem while making a custom preview file for Kirby Sortable. I print out the builder structured object, and I choose which kind of builder snippet file to use to create the preview in the panel.

```auto
<?php foreach($module->builder()->toStructure() as $section): ?>
  <?php snippet('sections/preview', array('data' => $section)) ?>
<?php endforeach ?>

```

All the above works. The only thing I could not set is, how to tell the builder to output only the first object of its multi-object collection.

I tried using this approach by @texnixe ([Issue with filtering data using structures](https://forum.getkirby.com/t/issue-with-filtering-data-using-structures/5280/2))

```auto
$reviews = $page->children()->visible()->filter(function($p) {       
  return $p->scores()->toStructure()->filterBy('platform', '==', urldecode(param('platform')))->count() > 0;
});

```

and turned it into

```auto
<?php
  $preview = $module->filter(function($p) {
    return $p->builder()->toStructure()->first();
  });
?>

```

but it does not print out anything.

---

_[View the full topic](https://forum.getkirby.com/t/using-kirby-builder-to-add-new-radio-button-options-from-the-panel/6923)._
