# How do i install layout addon?

**URL:** https://discourse.getcockpit.com/t/how-do-i-install-layout-addon/2626
**Category:** Support
**Created:** [December 18, 2022, 3:29pm UTC](https://discourse.getcockpit.com/t/how-do-i-install-layout-addon/2626 "2022-12-18T15:29:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vladistos](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/vladistos/32/1247_2.png) [@vladistos](https://discourse.getcockpit.com/u/vladistos)
#### Post date: [December 18, 2022, 3:29pm UTC](https://discourse.getcockpit.com/t/how-do-i-install-layout-addon/2626/1 "2022-12-18T15:29:38Z")

</div>

I tried to install as indicated in the github, but with such an installation it gives an error.  
`Fatal error: Uncaught Error: Undefined constant "COCKPIT_API_REQUEST"` .

---

<div class="post-metadata">

### Author: ![witsec](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/witsec/32/818_2.png) [@witsec](https://discourse.getcockpit.com/u/witsec)
#### Post date: [December 18, 2022, 3:36pm UTC](https://discourse.getcockpit.com/t/how-do-i-install-layout-addon/2626/2 "2022-12-18T15:36:34Z")

</div>

What version of Cockpit are you running?

Judging only on the error message, I think you’re running v2 and the addon you installed is most likely meant for v1.

---

<div class="post-metadata">

### Author: ![vladistos](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/vladistos/32/1247_2.png) [@vladistos](https://discourse.getcockpit.com/u/vladistos)
#### Post date: [December 18, 2022, 3:52pm UTC](https://discourse.getcockpit.com/t/how-do-i-install-layout-addon/2626/3 "2022-12-18T15:52:29Z")

</div>

Yes, my version is 2.2.1 and I trying to install [this](https://github.com/agentejo/LayoutComponents). Info about this addon is in oficcial v2 doc [here](https://getcockpit.com/documentation/core/concepts/field-types#layout) at Layout type.

---

<div class="post-metadata">

### Author: ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)
#### Post date: [December 19, 2022, 12:55am UTC](https://discourse.getcockpit.com/t/how-do-i-install-layout-addon/2626/4 "2022-12-19T00:55:17Z")

</div>

The layout field in v2 is part of the pro version. You can try it out for free during development [https://files.getcockpit.com/releases/master/cockpit-pro.zip](https://files.getcockpit.com/releases/master/cockpit-pro.zip)
