Content, fonts, photos
Helpers for ids you put on template nodes and options. See Templates.
listContentModels
List the content models of a museum. Templates can bind CONTENT nodes and content roots to these models.
| Argument | Type | Required | Description |
|---|---|---|---|
museumId | string | Yes | Museum id |
Returns { contentModels }. Each model includes id, name, role, primaryTextFieldId, primaryImageFieldId, belongsToModel, and fields (id, name, type, label, role).
listContentItems
List content items of a museum. Optionally pass a model id to keep only that model. Use these ids in CONTENT nodes and content roots.
| Argument | Type | Required | Description |
|---|---|---|---|
museumId | string | Yes | Museum id |
model | string | No | Content model id |
Returns { contentItems }. Each item includes id, model, published, createdAt, updatedAt, and fieldValues (fieldId, value, language).
listFonts
List fonts uploaded for a museum. Use fontFamily (and weight or style) on TEXT styles.
| Argument | Type | Required | Description |
|---|---|---|---|
museumId | string | Yes | Museum id |
Returns { fonts }. Each font includes id, fontFamily, fontWeight, fontStyle, fontStretch, format, and file.
getPhoto
Look up one photo by id. There is no museum-wide photo list; reuse ids already on templates or content, or look up a known id. IMAGE nodes and pass options store a photo id.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Photo id |
Returns id, color, width, height, and credits.