Collection link: display multiple fieldnames

Is it possible to show more fieldnames on the display?

    "link": "collectionname",
    "display": [
    "multiple": false,
    "limit": false
1 Like

I want to make same, i have try a trick with an Set field for display it on a json structure, but that not work on collection link view and display “{getDisplay(link)} or {Object}” label.

I’m new on this CMS, but after viewing this post : Renderer for set field in backend
I think this features is possible with a component.

This feature seems useful. I want to show “firstname” and “lastname” of linked entities; either has no meaning by itself.

I wrote a custom collectionlink field and added a string concat function.


Copy the modified file to /path/to/cockpit/config/tags/field-collectionlink.tag and add your display field names in brackets. The string replacement is inspired by the set renderer.

  "link": "persons",
  "display": "{first_name} {last_name}"

I didn’t test it with "multiple":true. Feel free, to send a pull request, if you find any issues.

If you use such modified files, don’t forget to copy them to remote locations… and if you ask for help on discourse, don’t forget to mention, that your issues might differ from the default behaviour. And, obviously, custom tags won’t receive updates when you update cockpit.

1 Like