# Cockpit v2

**URL:** https://discourse.getcockpit.com/c/cockpit-v2/10.md

[Latest](https://discourse.getcockpit.com/latest.md) · [Categories](https://discourse.getcockpit.com/categories.md)

---

## [About the Cockpit v2 category](https://discourse.getcockpit.com/t/about-the-cockpit-v2-category/2439)

<div class="topic-metadata">

**Author:** [@artur](https://discourse.getcockpit.com/u/artur)\
**Replies:** 1\
**Last updated:** [September 9, 2022, 10:52am UTC](https://discourse.getcockpit.com/t/about-the-cockpit-v2-category/2439 "2022-09-09T10:52:40Z")

</div>

Anything Cockpit v2 related

---

## [Customize Wysiwyg](https://discourse.getcockpit.com/t/customize-wysiwyg/2466)

<div class="topic-metadata">

**Author:** [@WideCircle](https://discourse.getcockpit.com/u/WideCircle)\
**Replies:** 7\
**Last updated:** [December 8, 2025, 10:25pm UTC](https://discourse.getcockpit.com/t/customize-wysiwyg/2466 "2025-12-08T22:25:14Z")

</div>

Hi! I’m trying to understand how I can customize the wysiwyg-field toolbar. I’ve looked and tried what’s in the old documentation but I don’t know if it is the same. Anyways I’ve tried a bunch of different ways of wri…

---

## [Using Cockpit as library](https://discourse.getcockpit.com/t/using-cockpit-as-library/3269)

<div class="topic-metadata">

**Author:** [@fluxxus](https://discourse.getcockpit.com/u/fluxxus)\
**Replies:** 1\
**Last updated:** [November 23, 2025, 1:28pm UTC](https://discourse.getcockpit.com/t/using-cockpit-as-library/3269 "2025-11-23T13:28:32Z")

</div>

I see that the docs are updated with new guides(maybe I missed them before tbh). One of the guides is using cockpit as library. Is it possible to connect to an existing Cockpit instance in the same way as described in t…

---

## [How to use "Option" and "Meta" in Fields?](https://discourse.getcockpit.com/t/how-to-use-option-and-meta-in-fields/3222)

<div class="topic-metadata">

**Author:** [@HenriqueBatista](https://discourse.getcockpit.com/u/HenriqueBatista)\
**Replies:** 0\
**Last updated:** [July 23, 2025, 2:44pm UTC](https://discourse.getcockpit.com/t/how-to-use-option-and-meta-in-fields/3222 "2025-07-23T14:44:31Z")

</div>

Hi everyone! Hope you’re all doing well :blush: I’m currently running some tests on Cockpit V2 and came across a question about using the "options" and "meta" fields. Could someone share an example showing how these fi…

---

## [How to configure the email template for each form?](https://discourse.getcockpit.com/t/how-to-configure-the-email-template-for-each-form/3221)

<div class="topic-metadata">

**Author:** [@HenriqueBatista](https://discourse.getcockpit.com/u/HenriqueBatista)\
**Replies:** 2\
**Last updated:** [July 23, 2025, 2:14pm UTC](https://discourse.getcockpit.com/t/how-to-configure-the-email-template-for-each-form/3221 "2025-07-23T14:14:48Z")

</div>

Olá, pessoal! Sou novo por aqui e gostaria de pedir ajuda com uma dúvida sobre layout de e-mail. Recentemente testei os formulários disponíveis e achei o recurso muito interessante. Criei um formulário de contato e, ao …

---

## [Asset upload modal always below asset modal](https://discourse.getcockpit.com/t/asset-upload-modal-always-below-asset-modal/2973)

<div class="topic-metadata">

**Author:** [@OGFaisalN](https://discourse.getcockpit.com/u/OGFaisalN)\
**Replies:** 1\
**Last updated:** [June 12, 2025, 9:26pm UTC](https://discourse.getcockpit.com/t/asset-upload-modal-always-below-asset-modal/2973 "2025-06-12T21:26:02Z")

</div>

When creating/updating an item with an asset field, the assets modal always has a higher z-index than the upload asset modal, which should be higher. The problem with this is, when you go to select and upload an asset, …

---

## [Can we please get a reset password feature?](https://discourse.getcockpit.com/t/can-we-please-get-a-reset-password-feature/3189)

<div class="topic-metadata">

**Author:** [@Cryptospy](https://discourse.getcockpit.com/u/Cryptospy)\
**Replies:** 1\
**Last updated:** [May 23, 2025, 10:47am UTC](https://discourse.getcockpit.com/t/can-we-please-get-a-reset-password-feature/3189 "2025-05-23T10:47:30Z")

</div>

its just a very basic feature i think every small software has. A simple handover of projects to clients or providing backend access to clients becomes difficult as reset password is not a thing. while i appricaite the …

---

## [Solution to filter nested multiple content links](https://discourse.getcockpit.com/t/solution-to-filter-nested-multiple-content-links/3167)

<div class="topic-metadata">

**Author:** [@goosen999](https://discourse.getcockpit.com/u/goosen999)\
**Replies:** 0\
**Last updated:** [March 17, 2025, 6:20pm UTC](https://discourse.getcockpit.com/t/solution-to-filter-nested-multiple-content-links/3167 "2025-03-17T18:20:04Z")

</div>

I know this subject has already been talked and some solutions have been provided but I would like to purpose one that can be integrated to the core. It’s a one line solution and for the specific purpose of multiple con…

---

## [Maintenance mode from CONFIG file](https://discourse.getcockpit.com/t/maintenance-mode-from-config-file/3150)

<div class="topic-metadata">

**Author:** [@mickov3r](https://discourse.getcockpit.com/u/mickov3r)\
**Replies:** 0\
**Last updated:** [February 11, 2025, 9:35am UTC](https://discourse.getcockpit.com/t/maintenance-mode-from-config-file/3150 "2025-02-11T09:35:14Z")

</div>

Hi, I made a small fix in the code, in case someone wants to do maintenance on the live environment and needs to disable login/editing. The setting is done via the CONFIG file, so it doesn’t need to change the localizati…

---

## [How to import Next collections (& Singletons) to V2 Core (free)](https://discourse.getcockpit.com/t/how-to-import-next-collections-singletons-to-v2-core-free/2526)

<div class="topic-metadata">

**Author:** [@russellfeeed](https://discourse.getcockpit.com/u/russellfeeed)\
**Replies:** 6\
**Last updated:** [December 28, 2024, 5:58pm UTC](https://discourse.getcockpit.com/t/how-to-import-next-collections-singletons-to-v2-core-free/2526 "2024-12-28T17:58:46Z")

</div>

Hi I have exported my collection from Cockpit Next and now want to import them into V2 Core. Can this be done? thanks in advance

---

## [How to prevent duplicated entry or unique a field?](https://discourse.getcockpit.com/t/how-to-prevent-duplicated-entry-or-unique-a-field/3098)

<div class="topic-metadata">

**Author:** [@poe](https://discourse.getcockpit.com/u/poe)\
**Replies:** 0\
**Last updated:** [December 6, 2024, 12:09pm UTC](https://discourse.getcockpit.com/t/how-to-prevent-duplicated-entry-or-unique-a-field/3098 "2024-12-06T12:09:05Z")

</div>

I have a collection of contacts and I want to ensure that each entry has a unique ‘Name’ and ‘Email’ field. Is it possible to prevent user from submitting the same Name or Email? Where can I set unique to text fields l…

---

## [Localization works strangely](https://discourse.getcockpit.com/t/localization-works-strangely/2897)

<div class="topic-metadata">

**Author:** [@Oralbek](https://discourse.getcockpit.com/u/Oralbek)\
**Replies:** 1\
**Last updated:** [December 1, 2024, 7:44pm UTC](https://discourse.getcockpit.com/t/localization-works-strangely/2897 "2024-12-01T19:44:31Z")

</div>

Localization in the API only works when languages are in the “Enabled” state. Is this how it should work? It’s not entirely convenient that to edit, you first need to turn on the language, then edit, then turn it off ag…

---

## [Addon Cockpit Pro (2.10.0) - Pages, bug on "open preview"](https://discourse.getcockpit.com/t/addon-cockpit-pro-2-10-0-pages-bug-on-open-preview/3085)

<div class="topic-metadata">

**Author:** [@tempius](https://discourse.getcockpit.com/u/tempius)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 9:32am UTC](https://discourse.getcockpit.com/t/addon-cockpit-pro-2-10-0-pages-bug-on-open-preview/3085 "2024-11-13T09:32:02Z")

</div>

on line 378 of addons/Pages/views/pages/page.php of what i see on the other files it should be:

---

## [Page-Layout UI Bug](https://discourse.getcockpit.com/t/page-layout-ui-bug/3068)

<div class="topic-metadata">

**Author:** [@DanielWahl](https://discourse.getcockpit.com/u/DanielWahl)\
**Replies:** 5\
**Last updated:** [October 26, 2024, 11:46am UTC](https://discourse.getcockpit.com/t/page-layout-ui-bug/3068 "2024-10-26T11:46:35Z")

</div>

Hi, There seems to be a major bug with the layout UI of pages. It only seems to happen on Mac Retina display (or maybe high-res display in general), not on “normal” displays. Using Cockpit Pro 2.9.4 with mongolite on …

---

## [\[cp 2\] generate slug when saving collection](https://discourse.getcockpit.com/t/cp-2-generate-slug-when-saving-collection/2432)

<div class="topic-metadata">

**Author:** [@faridbouchdak](https://discourse.getcockpit.com/u/faridbouchdak)\
**Replies:** 12\
**Last updated:** [September 25, 2024, 7:46pm UTC](https://discourse.getcockpit.com/t/cp-2-generate-slug-when-saving-collection/2432 "2024-09-25T19:46:16Z")

</div>

Reason for this topic: The addons BetterSlugs and Unique Slug do not work yet with our new and improved codebase. Secondly, I need slugs for my routes. Purpose for this topic: I want to have a simple bootstrap.php file …

---

## [Upgrading to v2.8.3](https://discourse.getcockpit.com/t/upgrading-to-v2-8-3/2963)

<div class="topic-metadata">

**Author:** [@OGFaisalN](https://discourse.getcockpit.com/u/OGFaisalN)\
**Replies:** 4\
**Last updated:** [August 27, 2024, 4:53am UTC](https://discourse.getcockpit.com/t/upgrading-to-v2-8-3/2963 "2024-08-27T04:53:51Z")

</div>

Hello, I would like to upgrade Cockpit to version 2.8.3, the latest published version. When I download cockpit-core.zip, unzip, upload to XAMPP, run /install, and navigate home, I get the following page. I have not modif…

---

## [How do I set document\_base\_url?](https://discourse.getcockpit.com/t/how-do-i-set-document-base-url/3016)

<div class="topic-metadata">

**Author:** [@buzz](https://discourse.getcockpit.com/u/buzz)\
**Replies:** 0\
**Last updated:** [July 27, 2024, 11:30am UTC](https://discourse.getcockpit.com/t/how-do-i-set-document-base-url/3016 "2024-07-27T11:30:45Z")

</div>

I’ve tried in my config.php: \<?php return \[ 'editor' =\> \[ 'tinymce' =\> \[ 'relative\_urls' =\> false, 'remove\_script\_host' =\> false, 'document\_base\_url' =\> 'https://www…

---

## [Locales default language](https://discourse.getcockpit.com/t/locales-default-language/2547)

<div class="topic-metadata">

**Author:** [@aiamk](https://discourse.getcockpit.com/u/aiamk)\
**Replies:** 4\
**Last updated:** [July 24, 2024, 1:12pm UTC](https://discourse.getcockpit.com/t/locales-default-language/2547 "2024-07-24T13:12:15Z")

</div>

Hello, I am suggesting the following for localizing entries: Instead of using ‘default’ rename it to English and make option to choose default language in locales settings. Return back the old translation drop-dow…

---

## [V2 System Updater](https://discourse.getcockpit.com/t/v2-system-updater/2964)

<div class="topic-metadata">

**Author:** [@OGFaisalN](https://discourse.getcockpit.com/u/OGFaisalN)\
**Replies:** 0\
**Last updated:** [April 16, 2024, 2:21am UTC](https://discourse.getcockpit.com/t/v2-system-updater/2964 "2024-04-16T02:21:33Z")

</div>

I noticed the new Updater in settings, does this override all modifies system files, configurations, etc.? Since we can no longer use Tower to update, I assume this is a replacement for that.

---

## [Force Basic en Text components in Layout component](https://discourse.getcockpit.com/t/force-basic-en-text-components-in-layout-component/2931)

<div class="topic-metadata">

**Author:** [@Thomasmuur](https://discourse.getcockpit.com/u/Thomasmuur)\
**Replies:** 0\
**Last updated:** [February 7, 2024, 7:44pm UTC](https://discourse.getcockpit.com/t/force-basic-en-text-components-in-layout-component/2931 "2024-02-07T19:44:09Z")

</div>

Hey! I’m using version a free trial version of Cockpit Pro to check if it has my needs! I really like the page builder with the Components package, I’m adding my own components. I have the following groups for the com…

---

## [Admin admin doesn't work](https://discourse.getcockpit.com/t/admin-admin-doesnt-work/2882)

<div class="topic-metadata">

**Author:** [@hjfr](https://discourse.getcockpit.com/u/hjfr)\
**Replies:** 2\
**Last updated:** [January 19, 2024, 2:13pm UTC](https://discourse.getcockpit.com/t/admin-admin-doesnt-work/2882 "2024-01-19T14:13:29Z")

</div>

Hi guys and girls, I installed cockpit on my server and tried to login with admin admin. Perhaps I did something wrong, but the system says wrong login. So I cannot continue… Any suggestion how to solve this? Regards…

---

## [Account Link Field for V2?](https://discourse.getcockpit.com/t/account-link-field-for-v2/2903)

<div class="topic-metadata">

**Author:** [@poe](https://discourse.getcockpit.com/u/poe)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 4:24pm UTC](https://discourse.getcockpit.com/t/account-link-field-for-v2/2903 "2024-01-11T16:24:23Z")

</div>

Suppose that I have a model called Books, I don’t want to create a new model Authors to link Books model, I just want to link existing users of Cockpit. In V1, I can achieve this by using Account Link but it seems v2 is …

---

## [Authenticate API with Username and Password](https://discourse.getcockpit.com/t/authenticate-api-with-username-and-password/2472)

<div class="topic-metadata">

**Author:** [@Sephen](https://discourse.getcockpit.com/u/Sephen)\
**Replies:** 8\
**Last updated:** [December 18, 2023, 11:08am UTC](https://discourse.getcockpit.com/t/authenticate-api-with-username-and-password/2472 "2023-12-18T11:08:00Z")

</div>

How can I authenticate a user with a username and password via the API? In the previous version you could (in config/public/api/auth/php) do return $this-\>invoke('Cockpit\\\\Controller\\\\RestApi', 'authUser'); But appar…

---

## [Retrieving Collection Fields in API v2](https://discourse.getcockpit.com/t/retrieving-collection-fields-in-api-v2/2901)

<div class="topic-metadata">

**Author:** [@Mikearaya](https://discourse.getcockpit.com/u/Mikearaya)\
**Replies:** 0\
**Last updated:** [December 1, 2023, 6:34pm UTC](https://discourse.getcockpit.com/t/retrieving-collection-fields-in-api-v2/2901 "2023-12-01T18:34:26Z")

</div>

Is there a method or endpoint in v2 that allows me to obtain collection fields from the API? I relied on this to create a dynamic filter in one of my old projects and I was wondering how I can achieve the same using V2. …

---

## [How to login and get the API token with username and password?](https://discourse.getcockpit.com/t/how-to-login-and-get-the-api-token-with-username-and-password/2483)

<div class="topic-metadata">

**Author:** [@Jamo](https://discourse.getcockpit.com/u/Jamo)\
**Replies:** 8\
**Last updated:** [November 24, 2023, 3:49pm UTC](https://discourse.getcockpit.com/t/how-to-login-and-get-the-api-token-with-username-and-password/2483 "2023-11-24T15:49:31Z")

</div>

Hey there :wave: I’m currently working on a frontend project which will feature user logins which will be required to use the application. So far so easy. I want to use Cockpit’s (v2) user authentication and role manag…

---

## [Additional user info V1 -\> V2](https://discourse.getcockpit.com/t/additional-user-info-v1-v2/2894)

<div class="topic-metadata">

**Author:** [@michka](https://discourse.getcockpit.com/u/michka)\
**Replies:** 1\
**Last updated:** [November 22, 2023, 1:34pm UTC](https://discourse.getcockpit.com/t/additional-user-info-v1-v2/2894 "2023-11-22T13:34:29Z")

</div>

Ahoi, currently I am working on migration of running project from V1 to V2. In former version there where lots of additional information per user to be stored. The fields have been configured in the config.php. I just co…

---

## [Compatibility of agentejo/cockpit and cockpithq/cockpit and docker support](https://discourse.getcockpit.com/t/compatibility-of-agentejo-cockpit-and-cockpithq-cockpit-and-docker-support/2853)

<div class="topic-metadata">

**Author:** [@tommueller](https://discourse.getcockpit.com/u/tommueller)\
**Replies:** 5\
**Last updated:** [November 22, 2023, 11:08am UTC](https://discourse.getcockpit.com/t/compatibility-of-agentejo-cockpit-and-cockpithq-cockpit-and-docker-support/2853 "2023-11-22T11:08:41Z")

</div>

Hi, I am wondering about our possibilities to migrate from an old 0.11.0 version running in the previously provided docker image (agentejo/cockpit). Now I know this version is about 3 years old and we are considering w…

---

## [One-to-one, many-to-one or many-to-many relationship management in the new cockpit v2](https://discourse.getcockpit.com/t/one-to-one-many-to-one-or-many-to-many-relationship-management-in-the-new-cockpit-v2/2873)

<div class="topic-metadata">

**Author:** [@xiclica](https://discourse.getcockpit.com/u/xiclica)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 8:51am UTC](https://discourse.getcockpit.com/t/one-to-one-many-to-one-or-many-to-many-relationship-management-in-the-new-cockpit-v2/2873 "2023-11-01T08:51:30Z")

</div>

I have a question about how to use the tool, how I could implement fields with a one-to-one or many-to-many relationship taking into account that the database structure that is managed is non-relational, how I could crea…

---

## [REST API Post Request Localization](https://discourse.getcockpit.com/t/rest-api-post-request-localization/2887)

<div class="topic-metadata">

**Author:** [@peterwyss](https://discourse.getcockpit.com/u/peterwyss)\
**Replies:** 3\
**Last updated:** [October 25, 2023, 11:24pm UTC](https://discourse.getcockpit.com/t/rest-api-post-request-localization/2887 "2023-10-25T23:24:56Z")

</div>

Hello, This is my JSON string for the post request: { “data”: { “titel”: “Ingwer-Kürbis-Suppe”, “\_id”: “ffcf37953462337796000279”, “text”: “Hokkaido-Kürbis-Suppe mit Ingwer und unserer Gemüsebouillon”, “preis1”: …

---

## [How to create protected custom API end points?](https://discourse.getcockpit.com/t/how-to-create-protected-custom-api-end-points/2880)

<div class="topic-metadata">

**Author:** [@jbeuria](https://discourse.getcockpit.com/u/jbeuria)\
**Replies:** 2\
**Last updated:** [October 3, 2023, 12:40am UTC](https://discourse.getcockpit.com/t/how-to-create-protected-custom-api-end-points/2880 "2023-10-03T00:40:29Z")

</div>

Dear cockpit users, I created a custom api end point at /api/test by creating a file /config/api/test.php \<?php return \['say'=\>'hello'\]; How can I protect the route from unauthenticated use? Also, how to write POST ca…

[Next page](https://discourse.getcockpit.com/c/cockpit-v2/10.md?page=1)
