# Create a composer.php file for the V9 Accordion block

**URL:** https://forums.concretecms.org/t/create-a-composer-php-file-for-the-v9-accordion-block/4685
**Category:** Developing with Concrete
**Created:** [December 16, 2022, 4:53pm UTC](https://forums.concretecms.org/t/create-a-composer-php-file-for-the-v9-accordion-block/4685 "2022-12-16T16:53:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![studio108](https://forums.concretecms.org/user_avatar/forums.concretecms.org/studio108/32/3498_2.png) [@studio108](https://forums.concretecms.org/u/studio108)
#### Post date: [December 16, 2022, 4:53pm UTC](https://forums.concretecms.org/t/create-a-composer-php-file-for-the-v9-accordion-block/4685/1 "2022-12-16T16:53:00Z")

</div>

My client wishes to use the Accordion block in the page composer. Is it straightforward to create the composer.php file to get the block to appear within composer? I have looked at the few examples available and I am struggling to see a general structure to it. I have looked at the tutorial but struggling to get my head around it?

---

<div class="post-metadata">

### Author: ![EvanCooper](https://forums.concretecms.org/user_avatar/forums.concretecms.org/evancooper/32/4597_2.png) [@EvanCooper](https://forums.concretecms.org/u/EvanCooper)
#### Post date: [December 21, 2022, 9:49pm UTC](https://forums.concretecms.org/t/create-a-composer-php-file-for-the-v9-accordion-block/4685/2 "2022-12-21T21:49:13Z")

</div>

Hi @studio108 so you’re looking at this? [Enabling Composer Editing for a Block Type](https://documentation.concretecms.org/developers/working-with-blocks/creating-a-new-block-type/enabling-composer-editing-for-block-type)

Are there any other resources you’re looking at?

Accordions are going to be a trickier block than most to incorporate into composer just because they can be 1-n entries and you would need to be able to sort them, so your composer edit interface is going to have to be pretty robust, essentially as robust as the block edit form.

---

<div class="post-metadata">

### Author: ![studio108](https://forums.concretecms.org/user_avatar/forums.concretecms.org/studio108/32/3498_2.png) [@studio108](https://forums.concretecms.org/u/studio108)
#### Post date: [December 21, 2022, 10:18pm UTC](https://forums.concretecms.org/t/create-a-composer-php-file-for-the-v9-accordion-block/4685/3 "2022-12-21T22:18:51Z")

</div>

Thanks for the reply. I have looked at the core blocks that already work with Composer plus the tutorial in docs. I think I may just place the block on the page template output and suggest the client edits it directly on the newly created page.

---

<div class="post-metadata">

### Author: ![EvanCooper](https://forums.concretecms.org/user_avatar/forums.concretecms.org/evancooper/32/4597_2.png) [@EvanCooper](https://forums.concretecms.org/u/EvanCooper)
#### Post date: [December 22, 2022, 10:21pm UTC](https://forums.concretecms.org/t/create-a-composer-php-file-for-the-v9-accordion-block/4685/4 "2022-12-22T22:21:54Z")

</div>

Yeah that’s probably a simpler and ultimately more effective solution. Accordions are pretty visual pieces so abstracting them out to composer might ultimately make it harder to see what they’re going to look like on the actual page, so users would end up in the block edit interface in any case.
