# New Addon - Helpers

**URL:** <https://discourse.getcockpit.com/t/new-addon-helpers/428>\
**Category:** Addons\
**Created:** [November 29, 2018, 12:33pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428 "2018-11-29T12:33:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauloamgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pauloamgomes/32/48_2.png) [@pauloamgomes](https://discourse.getcockpit.com/u/pauloamgomes)\
**Post date:** [November 29, 2018, 12:33pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/1 "2018-11-29T12:33:38Z")

</div>

Hi, Cockpit community!

This addon (still work in progress) combines few things that I think would improve Cockpit usage and maybe some of the ideas (e.g. json preview) can be ported to the core.

> **[pauloamgomes/CockpitCMS-Helpers](https://github.com/pauloamgomes/CockpitCMS-Helpers)**
>
> Cockpit CMS Addon with a set of useful helpers (that alone don't justify a new Addon). - pauloamgomes/CockpitCMS-Helpers

---

<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:** [November 29, 2018, 2:48pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/2 "2018-11-29T14:48:11Z")

</div>

the json preview (and raw edit) is already on my todolist. but keep it coming maybe some ideas will make it to the core 😉

---

<div class="post-metadata">

**Author:** ![pauloamgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pauloamgomes/32/48_2.png) [@pauloamgomes](https://discourse.getcockpit.com/u/pauloamgomes)\
**Post date:** [December 15, 2018, 7:52pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/3 "2018-12-15T19:52:38Z")

</div>

In the meantime added some new features, the one that think could be interesting to explore is an add-on installer, resuming, for the project I’m working it makes sense to store data structures like singletons, forms, collections in add-ons (so its possible to spin a new instance of cockpit with all dependencies and not have to share the storage folder).

[https://github.com/pauloamgomes/CockpitCMS-Helpers#addon-install-cli-command](https://github.com/pauloamgomes/CockpitCMS-Helpers#addon-install-cli-command)

---

<div class="post-metadata">

**Author:** ![pauloamgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pauloamgomes/32/48_2.png) [@pauloamgomes](https://discourse.getcockpit.com/u/pauloamgomes)\
**Post date:** [January 23, 2019, 12:28pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/4 "2019-01-23T12:28:13Z")

</div>

Updated the JSON feature to support the raw edit.

---

<div class="post-metadata">

**Author:** ![fschuermeyer](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/fschuermeyer/32/216_2.png) [@fschuermeyer](https://discourse.getcockpit.com/u/fschuermeyer)\
**Post date:** [January 25, 2019, 1:26pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/5 "2019-01-25T13:26:44Z")

</div>

Hello,  
it’s Possible to Only Active the View of Json. Not the Edit?

---

<div class="post-metadata">

**Author:** ![pauloamgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pauloamgomes/32/48_2.png) [@pauloamgomes](https://discourse.getcockpit.com/u/pauloamgomes)\
**Post date:** [January 25, 2019, 3:36pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/6 "2019-01-25T15:36:09Z")

</div>

Good point @fschuermeyer, updated the code to support it via ACL:

```auto
helpers:
  jsonview: true
  jsonedit: false

```

---

<div class="post-metadata">

**Author:** ![fschuermeyer](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/fschuermeyer/32/216_2.png) [@fschuermeyer](https://discourse.getcockpit.com/u/fschuermeyer)\
**Post date:** [January 25, 2019, 3:47pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/7 "2019-01-25T15:47:07Z")

</div>

Thanks for your nice work \<3 i love a lot of your Addons 🙂

---

<div class="post-metadata">

**Author:** ![pauloamgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pauloamgomes/32/48_2.png) [@pauloamgomes](https://discourse.getcockpit.com/u/pauloamgomes)\
**Post date:** [February 25, 2019, 9:31pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/8 "2019-02-25T21:31:10Z")

</div>

Updated addon with a mechanism to override content preview URL using the config.yaml. Since the content preview is tied with the collection definition is not possible for example to have a preview url for local environment and other for dev/stage/production, etc… Addon overrides that.

([https://github.com/pauloamgomes/CockpitCMS-Helpers#content-preview-url-override](https://github.com/pauloamgomes/CockpitCMS-Helpers#content-preview-url-override))

---

<div class="post-metadata">

**Author:** ![pauloamgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pauloamgomes/32/48_2.png) [@pauloamgomes](https://discourse.getcockpit.com/u/pauloamgomes)\
**Post date:** [June 10, 2019, 10:56pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/9 "2019-06-10T22:56:50Z")

</div>

A new update that provides the possibility to use the global cockpit search to search in collection entries (tested with mongodb storage).

([https://github.com/pauloamgomes/CockpitCMS-Helpers#cockpit-search-on-collections](https://github.com/pauloamgomes/CockpitCMS-Helpers#cockpit-search-on-collections))

---

<div class="post-metadata">

**Author:** ![ritzdank](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@ritzdank](https://discourse.getcockpit.com/u/ritzdank)\
**Post date:** [June 22, 2021, 12:20pm UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/10 "2021-06-22T12:20:55Z")

</div>

Thanks for the addon. I totally need some of the tools for example to ignore duplicate entries. However, I am struggling to make it work. I’ve put the `config.yaml` inside the addons/Helpers/ folder, but it doesn’t seem to work (eq. i can still create duplicates in the collection tutorials and I don’t see the action bar in the navigation)

Here’s my config.yaml file:

```auto
helpers:
  uniqueFields:
    tutorials:
      - id

  quickactions:
    - group: Create
      actions:
        - label: Tutorial
          path: /collections/entry/tutorials

```

---

<div class="post-metadata">

**Author:** ![MarcTabaries](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/marctabaries/32/867_2.png) [@MarcTabaries](https://discourse.getcockpit.com/u/MarcTabaries)\
**Post date:** [August 19, 2021, 9:57am UTC](https://discourse.getcockpit.com/t/new-addon-helpers/428/11 "2021-08-19T09:57:11Z")

</div>

Would it be possible to have a Helper, in each entry of a collection, which would be intended to give direct access (a link) to the API of this collection ? The same for singletons ?

Example, collection Post :

- Link to all entries: /api/collections/entries/post?token=XXX
- Link to the entry being edited: /api/collections/entry/post?token=XXX&filter[\_id]=XXX

Personally, I think it’s a shame that it’s not possible to have links like this. It would be really useful and much more practical.

This information could be displayed in the sidebar of the entry of a collection / singleton.

What do you think about this ?
