# General

**URL:** https://discourse.getcockpit.com/c/general/3.md?page=2

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

**Page:** 3

---

## [Read only collection field](https://discourse.getcockpit.com/t/read-only-collection-field/1453)

<div class="topic-metadata">

**Author:** [@hosseiny](https://discourse.getcockpit.com/u/hosseiny)\
**Replies:** 1\
**Last updated:** [May 12, 2020, 5:26pm UTC](https://discourse.getcockpit.com/t/read-only-collection-field/1453 "2020-05-12T17:26:45Z")

</div>

I’m currently posting a form to a collection. For convenience, is there a way to make a collection field read-only?

---

## [Precision in rating fields](https://discourse.getcockpit.com/t/precision-in-rating-fields/1432)

<div class="topic-metadata">

**Author:** [@Mirko](https://discourse.getcockpit.com/u/Mirko)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 11:33pm UTC](https://discourse.getcockpit.com/t/precision-in-rating-fields/1432 "2020-05-08T23:33:18Z")

</div>

Hi there, I’m pretty confused by the rating field and its precision … I just can’t get it to work properly. I want to create a rating field that goes from 0 to 10 in 0.5 increments. So I thought that this would be the…

---

## [Use mongodb atlas](https://discourse.getcockpit.com/t/use-mongodb-atlas/1430)

<div class="topic-metadata">

**Author:** [@valensto](https://discourse.getcockpit.com/u/valensto)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 7:37am UTC](https://discourse.getcockpit.com/t/use-mongodb-atlas/1430 "2020-05-08T07:37:48Z")

</div>

Hi there, how to use mongodb atlas with getcockpit? Is it possible?

---

## [Required filelds in Set](https://discourse.getcockpit.com/t/required-filelds-in-set/1420)

<div class="topic-metadata">

**Author:** [@terencejackson8000](https://discourse.getcockpit.com/u/terencejackson8000)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 11:33am UTC](https://discourse.getcockpit.com/t/required-filelds-in-set/1420 "2020-05-07T11:33:49Z")

</div>

Hi, I have defined a set with three items: 2 texts and 1 wysiwyg. The wysiwyg is supposed to be a mandatory field, the 2 texts are not mandatory. I have tried the following: { "type": "set", "name": "textO…

---

## [Cockpit CMS and mini multisite](https://discourse.getcockpit.com/t/cockpit-cms-and-mini-multisite/1422)

<div class="topic-metadata">

**Author:** [@Sebastian](https://discourse.getcockpit.com/u/Sebastian)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 8:26pm UTC](https://discourse.getcockpit.com/t/cockpit-cms-and-mini-multisite/1422 "2020-05-06T20:26:23Z")

</div>

Hello everyone and congratulations to the whole Cockpit team. I am a front-end developer with experience in html, css, javascript, ajax, php. I would like to use cockpit for a personal project. The configuration that I …

---

## [Localize Assets](https://discourse.getcockpit.com/t/localize-assets/1385)

<div class="topic-metadata">

**Author:** [@Mirko](https://discourse.getcockpit.com/u/Mirko)\
**Replies:** 0\
**Last updated:** [April 24, 2020, 10:57pm UTC](https://discourse.getcockpit.com/t/localize-assets/1385 "2020-04-24T22:57:14Z")

</div>

Hi, is there a way to localize the title and description of an asset? Maybe even to add some more fields as needed, like Fotographer, Copyright, etc The only way I see right now is to create a collection with everythi…

---

## [Changing the port of a Cockpit container (docker)](https://discourse.getcockpit.com/t/changing-the-port-of-a-cockpit-container-docker/1380)

<div class="topic-metadata">

**Author:** [@Saunved](https://discourse.getcockpit.com/u/Saunved)\
**Replies:** 0\
**Last updated:** [April 23, 2020, 1:01pm UTC](https://discourse.getcockpit.com/t/changing-the-port-of-a-cockpit-container-docker/1380 "2020-04-23T13:01:12Z")

</div>

If you launched your cockpit project using docker, you probably used this command: docker run -d --name cockpit -p 8080:80 agentejo/cockpit You might want to change the port at which this container is deployed. I looke…

---

## [Limit selections of images](https://discourse.getcockpit.com/t/limit-selections-of-images/1374)

<div class="topic-metadata">

**Author:** [@terencejackson8000](https://discourse.getcockpit.com/u/terencejackson8000)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 2:32pm UTC](https://discourse.getcockpit.com/t/limit-selections-of-images/1374 "2020-04-22T14:32:28Z")

</div>

Hi, is there any way to limit the selection of Images when Image is chosen as type? I have tried: { “maxlength”: 1 } but it is not working.

---

## [How to retrieve tokens "on the fly"?](https://discourse.getcockpit.com/t/how-to-retrieve-tokens-on-the-fly/1290)

<div class="topic-metadata">

**Author:** [@terencejackson8000](https://discourse.getcockpit.com/u/terencejackson8000)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 5:26pm UTC](https://discourse.getcockpit.com/t/how-to-retrieve-tokens-on-the-fly/1290 "2020-04-10T17:26:17Z")

</div>

Dear all, as for each request a token is needed I am creating a token for each application which wants to access my content (Setting-\>API Access). I am using these tokens for a React.JS App, which means I have to store…

---

## [Filter to exclude](https://discourse.getcockpit.com/t/filter-to-exclude/1322)

<div class="topic-metadata">

**Author:** [@putude](https://discourse.getcockpit.com/u/putude)\
**Replies:** 4\
**Last updated:** [April 6, 2020, 10:54am UTC](https://discourse.getcockpit.com/t/filter-to-exclude/1322 "2020-04-06T10:54:24Z")

</div>

Hello, I am trying to make a filter to exclude one category. The field named “categories” contain cat\_1, cat\_2, cat\_3, … How to make a filter from this category to exclude one of them? let say, exclude cat\_1

---

## [Simple php page to get post](https://discourse.getcockpit.com/t/simple-php-page-to-get-post/1305)

<div class="topic-metadata">

**Author:** [@jonah](https://discourse.getcockpit.com/u/jonah)\
**Replies:** 7\
**Last updated:** [April 3, 2020, 5:32am UTC](https://discourse.getcockpit.com/t/simple-php-page-to-get-post/1305 "2020-04-03T05:32:57Z")

</div>

I’m new at PHP (even though i’m coding in other languages( I have done a route in cockpit, so my single blogposts are routed to /blog/post and now I want to create a php page to list the post (so that google can follow …

---

## [Collection Field: Email Validation](https://discourse.getcockpit.com/t/collection-field-email-validation/1299)

<div class="topic-metadata">

**Author:** [@terencejackson8000](https://discourse.getcockpit.com/u/terencejackson8000)\
**Replies:** 3\
**Last updated:** [March 30, 2020, 11:13am UTC](https://discourse.getcockpit.com/t/collection-field-email-validation/1299 "2020-03-30T11:13:18Z")

</div>

Hi, is it possible to add a validation for a field in a collection e.g. to make sure an Email address is entered?

---

## [Generate URL from Titel](https://discourse.getcockpit.com/t/generate-url-from-titel/1248)

<div class="topic-metadata">

**Author:** [@pix3l](https://discourse.getcockpit.com/u/pix3l)\
**Replies:** 10\
**Last updated:** [March 14, 2020, 12:49pm UTC](https://discourse.getcockpit.com/t/generate-url-from-titel/1248 "2020-03-14T12:49:21Z")

</div>

Hey, is there a way or a php snippet, that would generate a field “url” from a possible Title field? In a perfect world, this snippet or function would replace “spaces” with “-” and “&” with “and”. eg: Title: Sound & …

---

## [Speed up image loading](https://discourse.getcockpit.com/t/speed-up-image-loading/1230)

<div class="topic-metadata">

**Author:** [@natemate90](https://discourse.getcockpit.com/u/natemate90)\
**Replies:** 1\
**Last updated:** [March 9, 2020, 12:04am UTC](https://discourse.getcockpit.com/t/speed-up-image-loading/1230 "2020-03-09T00:04:59Z")

</div>

Is there a way to speed up image loading? Don’t know if my webserver is slow, but it always feels like I have to wait a lot for the images; especially if there are many (i.e. gallery). I already compress and resize all …

---

## [Assets new Field](https://discourse.getcockpit.com/t/assets-new-field/1231)

<div class="topic-metadata">

**Author:** [@fschuermeyer](https://discourse.getcockpit.com/u/fschuermeyer)\
**Replies:** 1\
**Last updated:** [February 22, 2020, 9:09pm UTC](https://discourse.getcockpit.com/t/assets-new-field/1231 "2020-02-22T21:09:05Z")

</div>

Hello, its Possible to Add new Fields to Assets on the Assetsmanger, i need a Field for the URL there the Image is Placed Because for SEO Things it’s go to Have one Picture only one URL, and i copy the Picture on a othe…

---

## [Multiple storage folders](https://discourse.getcockpit.com/t/multiple-storage-folders/236)

<div class="topic-metadata">

**Author:** [@Serpico](https://discourse.getcockpit.com/u/Serpico)\
**Replies:** 4\
**Last updated:** [February 17, 2020, 2:23pm UTC](https://discourse.getcockpit.com/t/multiple-storage-folders/236 "2020-02-17T14:23:21Z")

</div>

Hi, I’d love to know if there’s a way to somehow specify the storage folder to be used on a per request basis. My goal is to enable multiple site contents to be managed with a single Cockpit installation. Ideally, depe…

---

## [Switching to MongoDB](https://discourse.getcockpit.com/t/switching-to-mongodb/514)

<div class="topic-metadata">

**Author:** [@seanmavley](https://discourse.getcockpit.com/u/seanmavley)\
**Replies:** 2\
**Last updated:** [February 17, 2020, 3:10am UTC](https://discourse.getcockpit.com/t/switching-to-mongodb/514 "2020-02-17T03:10:39Z")

</div>

Following the steps here: https://getcockpit.com/documentation/reference/configuration I wanna switch to mongodb Created the file and installed the required mongodb extension for php I go to example.com/install again t…

---

## [Welcome to the new Cockpit Community Forum](https://discourse.getcockpit.com/t/welcome-to-the-new-cockpit-community-forum/17)

<div class="topic-metadata">

**Author:** [@artur](https://discourse.getcockpit.com/u/artur)\
**Replies:** 8\
**Last updated:** [February 16, 2020, 9:51pm UTC](https://discourse.getcockpit.com/t/welcome-to-the-new-cockpit-community-forum/17 "2020-02-16T21:51:02Z")

</div>

Welcome to the new Cockpit Community Forum. Feel free to ask any questions you wish here, but also try searching first because the question has probably already been asked before! Use this forum to: Find out about Coc…

---

## [Can't update through API](https://discourse.getcockpit.com/t/cant-update-through-api/580)

<div class="topic-metadata">

**Author:** [@Hypothesis-github](https://discourse.getcockpit.com/u/Hypothesis-github)\
**Replies:** 3\
**Last updated:** [February 2, 2020, 8:57pm UTC](https://discourse.getcockpit.com/t/cant-update-through-api/580 "2020-02-02T20:57:16Z")

</div>

I am not familiar with Ajax and this may seem like a silly question but according to the documents Create / Update collection entries fetch('/api/collections/save/posts?token=xxtokenxx', { method: 'post', head…

---

## [Read-only field type for alerts, notifications, etc](https://discourse.getcockpit.com/t/read-only-field-type-for-alerts-notifications-etc/1183)

<div class="topic-metadata">

**Author:** [@tokant](https://discourse.getcockpit.com/u/tokant)\
**Replies:** 0\
**Last updated:** [January 31, 2020, 8:32am UTC](https://discourse.getcockpit.com/t/read-only-field-type-for-alerts-notifications-etc/1183 "2020-01-31T08:32:44Z")

</div>

Hi all, Does anybody know if it is possible to add an alert underneath a field, just like below the password field for account users (there is a div with class=“uk-alert”)? The problem I am facing is specifically with …

---

## [Cascading delete - through relations](https://discourse.getcockpit.com/t/cascading-delete-through-relations/1176)

<div class="topic-metadata">

**Author:** [@redairhead](https://discourse.getcockpit.com/u/redairhead)\
**Replies:** 0\
**Last updated:** [January 27, 2020, 6:55am UTC](https://discourse.getcockpit.com/t/cascading-delete-through-relations/1176 "2020-01-27T06:55:23Z")

</div>

I was just wondering if anyone had any experience with having to delete items when an item is being deleted from collection. Eg. I have Collection A that is being used as part of Collection B and C. I would like to on …

---

## [What are your hosting providers and how do you like them?](https://discourse.getcockpit.com/t/what-are-your-hosting-providers-and-how-do-you-like-them/1161)

<div class="topic-metadata">

**Author:** [@pemibo](https://discourse.getcockpit.com/u/pemibo)\
**Replies:** 5\
**Last updated:** [January 24, 2020, 11:38am UTC](https://discourse.getcockpit.com/t/what-are-your-hosting-providers-and-how-do-you-like-them/1161 "2020-01-24T11:38:25Z")

</div>

Hello, I’m looking for a hosting provider that plays well with Cockpit. Especially with Cockpit in a subdirectory and a Website/PWA in the root. I’d appreciate any recommendations before just trying out random ones :wi…

---

## [How to authenticate user on frontend via php](https://discourse.getcockpit.com/t/how-to-authenticate-user-on-frontend-via-php/1128)

<div class="topic-metadata">

**Author:** [@TheIpHunter](https://discourse.getcockpit.com/u/TheIpHunter)\
**Replies:** 0\
**Last updated:** [December 20, 2019, 1:10pm UTC](https://discourse.getcockpit.com/t/how-to-authenticate-user-on-frontend-via-php/1128 "2019-12-20T13:10:31Z")

</div>

Hi, I’m trying to build a login form where a user of a frontend (webpage) needs to login. How would this be done via php. Form is clear but how can I verify user and password via cockpit?

---

## [What does the last argument \`false\` mean in \`collections.find.after?\`](https://discourse.getcockpit.com/t/what-does-the-last-argument-false-mean-in-collections-find-after/1107)

<div class="topic-metadata">

**Author:** [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Replies:** 2\
**Last updated:** [December 2, 2019, 9:34pm UTC](https://discourse.getcockpit.com/t/what-does-the-last-argument-false-mean-in-collections-find-after/1107 "2019-12-02T21:34:08Z")

</div>

I don’t understand it. Is it a relict from the old legacy branch or to provide some info for an addon? Can it be removed?

---

## [Quick api question](https://discourse.getcockpit.com/t/quick-api-question/1097)

<div class="topic-metadata">

**Author:** [@Rweb](https://discourse.getcockpit.com/u/Rweb)\
**Replies:** 4\
**Last updated:** [November 27, 2019, 10:08pm UTC](https://discourse.getcockpit.com/t/quick-api-question/1097 "2019-11-27T22:08:13Z")

</div>

Hi, just started with cockpit and I have a very trivial question: I have 5 collections, is it possible to get the data from them with 1 api request ?

---

## [What is the proper setup for nested JSON arrays?](https://discourse.getcockpit.com/t/what-is-the-proper-setup-for-nested-json-arrays/1087)

<div class="topic-metadata">

**Author:** [@haa](https://discourse.getcockpit.com/u/haa)\
**Replies:** 3\
**Last updated:** [November 14, 2019, 6:54pm UTC](https://discourse.getcockpit.com/t/what-is-the-proper-setup-for-nested-json-arrays/1087 "2019-11-14T18:54:03Z")

</div>

I apologize for what must be a common beginner’s question but how should i be setting up my collections to include an array of values? I am looking to have my response formatted in a similar structure to this example: {…

---

## [Sorting Entries](https://discourse.getcockpit.com/t/sorting-entries/1025)

<div class="topic-metadata">

**Author:** [@stevrons](https://discourse.getcockpit.com/u/stevrons)\
**Replies:** 3\
**Last updated:** [November 13, 2019, 2:45am UTC](https://discourse.getcockpit.com/t/sorting-entries/1025 "2019-11-13T02:45:01Z")

</div>

Greetings, Is there a way to sort Entries within a collection ? It appears from other posts, it can be done through the API, but is there a way to do it right within the CMS/backend dashboard ? Thanks

---

## [Cockpit capacity](https://discourse.getcockpit.com/t/cockpit-capacity/968)

<div class="topic-metadata">

**Author:** [@ronaldaug](https://discourse.getcockpit.com/u/ronaldaug)\
**Replies:** 7\
**Last updated:** [September 20, 2019, 9:03pm UTC](https://discourse.getcockpit.com/t/cockpit-capacity/968 "2019-09-20T21:03:26Z")

</div>

I really like Cockpit. That’s why I switched some of my projects to Cockpit. But I haven’t tried a big web application with Cockpit yet. Currently I have a task to build a hotel management app for my client. And I gues…

---

## [Cursor lands at a random location](https://discourse.getcockpit.com/t/cursor-lands-at-a-random-location/952)

<div class="topic-metadata">

**Author:** [@jaska](https://discourse.getcockpit.com/u/jaska)\
**Replies:** 3\
**Last updated:** [September 18, 2019, 6:22pm UTC](https://discourse.getcockpit.com/t/cursor-lands-at-a-random-location/952 "2019-09-18T18:22:05Z")

</div>

Environment: Cockpit: newest code from next branch with a multilingual configuration MacOS 10.14.5 Chrome Issue: Often, when opening up a new entry, the cursor and text display strange behaviours. Part of the text is…

---

## [Change storage folder on other sub domain](https://discourse.getcockpit.com/t/change-storage-folder-on-other-sub-domain/957)

<div class="topic-metadata">

**Author:** [@howbizarre](https://discourse.getcockpit.com/u/howbizarre)\
**Replies:** 2\
**Last updated:** [August 2, 2019, 9:29pm UTC](https://discourse.getcockpit.com/t/change-storage-folder-on-other-sub-domain/957 "2019-08-02T21:29:39Z")

</div>

Hello, My Cockpit work on a sub domain and I use Cockpit API to get the information in the site. I want to change storage folder, for some security reason, on other sub domain and all uploads must going there. I’ve cre…

[Previous page](https://discourse.getcockpit.com/c/general/3.md?page=1)

[Next page](https://discourse.getcockpit.com/c/general/3.md?page=3)
