Collections: main properties requirement

In the video (Dev 64) and the documentation on Collections, unless I have missed it, it isn’t mentioned or documented that you need to also add an entry into the main component properties.json to be able to edit the collection (from the table example) e.g. :

    {
      "title": "Rows",
      "icon": "tablecells",
      "properties": [
        {
          "title": "Links",
          "property": "links",
          "collection": {
            "identifier": "com.acme.table.collections.rows"
          }
        }
      ]
    },

Took me a while to figure out why my collection wasn’t appearing! I had assumed (incorrectly) that as I had setup the collection properties and the hooks.js, that the collection would be automagically be added to the page inspector; this is especially the case as this isn’t in the documentation AFAICS?

Yes, you are correct - sorry about that. We’ll get this added to the docs!

1 Like