kontent-ai / gatsby-starter

Gatsby starter site with Kontent.ai
https://gatsby-starter-kontent.netlify.com
MIT License
16 stars 21 forks source link

Demonstrate Multiple choice elements #24

Open JanLenoch opened 5 years ago

JanLenoch commented 5 years ago

Motivation

Kentico Cloud has two artifacts to support categorization of content: Taxonomy elements and Multiple choice elements. The difference is in the scope: While taxonomies are project-wide, multiple choice elements are content type-only.

Currently, we have the Format table row in the speaking-engagement.js template that only displays the selected value(s).

Proposed solution

Rework the UI of the Format row to showcase the advantage of the contentType GraphQL property. That way, not only the selected values will be rendered.

Additional context

In the definition of a content type, the multiple choice elements contain all possible values. On the other hand, in the content items in the Delivery response, these elements hold only values used in a given content item.

Do make use of the links between items and their types produced by the createContentItemNode method of our source plugin. Demonstrate the usage of those links to show which of the values have and haven't been selected in a given content item. For instance, render a list of disabled checkboxes and make some of them checked.