# New Collection: How to add fields?

**URL:** <https://discourse.getcockpit.com/t/new-collection-how-to-add-fields/508>\
**Category:** Support\
**Created:** [January 10, 2019, 10:08pm UTC](https://discourse.getcockpit.com/t/new-collection-how-to-add-fields/508 "2019-01-10T22:08:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tintsch](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@tintsch](https://discourse.getcockpit.com/u/tintsch)\
**Post date:** [January 10, 2019, 10:08pm UTC](https://discourse.getcockpit.com/t/new-collection-how-to-add-fields/508/1 "2019-01-10T22:08:19Z")

</div>

Hi,  
I can’t figure out how to add fields in a new collection. In the docs I see a button [+ add field]. In my install this button is nowhere to be seen and no way to add a field. How can this bi accomplished? Is there an alternative way than through the Webinterface?

Screenshot: [https://ibb.co/ctq70C9](https://ibb.co/ctq70C9)

thanks! Valentin

How I got there:  
I made a fresh install (v. 0.8.7), the /config and /storage folders are readable by the webserver, added an admin user and created a new collection. Double checked all requirements.

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [January 12, 2019, 2:03pm UTC](https://discourse.getcockpit.com/t/new-collection-how-to-add-fields/508/2 "2019-01-12T14:03:10Z")

</div>

> [@tintsch](#):
>
> In my install this button is nowhere to be seen and no way to add a field.

Weird… Which browser did you use?

> [@tintsch](#):
>
> Is there an alternative way than through the Webinterface?

Add a file to `/storage/collections/collectionname.collections.php` and add your field definitions as PHP array.  
Examples:

- [https://github.com/agentejo/cockpit/blob/next/modules/Collections/fields-templates/posts.php](https://github.com/agentejo/cockpit/blob/next/modules/Collections/fields-templates/posts.php)
- [https://github.com/raffaelj/Monoplane-Demo/blob/master/dummy\_data/storage/collections/pages.collection.php](https://github.com/raffaelj/Monoplane-Demo/blob/master/dummy_data/storage/collections/pages.collection.php)
