Overview
In the Section and Page Schema tags, for every variable we define, we must define a type. The type can be a basic data type such as “string” or “number”, or can be a Resource data type such as “category” or “category-list”.
In the props
field of data files, we can specify the value for those variables. For Basic Data Types, we define the value directly in the JSON data. For Resource Data Types, we specify a way to load that resource (e.g. an item ID filter, in the case of Items).
Basic Data Types
Basic Data Types are distinct in that they do not need to be loaded - they are defined directly in the JSON data.
The Basic Data Types can be be found here. Basic Data Types don’t accept filters, and their output is straightforward- the value defined in the JSON is what is passed to the Section.
Resource Data Types
The Resource Data Types are used to fetch a resource. They are listed in the Resource Reference, here. The expected output for each Resource Data Type can be seen in the Output section of each Resource Reference page.