Referencia de tipos
Todos los tipos registrados en schemaTypes/index.ts y disponibles en el Studio.
Tipos registrados
_type | Categoría | Título en Studio | Archivo de definición |
|---|---|---|---|
seo | Object | SEO | schemas/objects/SEOBase.ts |
baseSection | Section | Sección | schemas/sections/base.ts |
page | Document | Páginas | schemas/documents/plainPage.ts |
indexPage | Document | Páginas Índice | schemas/documents/indexPage.ts |
seo
Categoría: Object
Export JS: seoBase
Usado en: page.seo, indexPage.seo
| Campo | Tipo Sanity | Requerido | Notas |
|---|---|---|---|
metaTitle | string | No | Warning si supera 60 caracteres |
metaDescription | text | No | Warning si supera 160 caracteres |
ogImage | image | No | Sin hotspot |
noIndex | boolean | No | false por defecto |
baseSection
Categoría: Section
Export JS: baseSection
Usado en: page.sections, indexPage.sectionsTop, indexPage.sectionsBottom
| Campo | Tipo Sanity | Requerido | Notas |
|---|---|---|---|
eyebrow | string | No | Etiqueta sobre el heading |
heading | string | No | — |
subheading | text | No | 3 filas en el editor |
ctas | array | No | Array de objetos cta |
image | image | No | Hotspot activado |
variant | string | No | default por defecto |
Sub-objeto cta (dentro de baseSection.ctas)
| Campo | Tipo Sanity | Requerido | Notas |
|---|---|---|---|
label | string | Sí | Texto del botón |
href | string | Sí | URL de destino |
variant | string | No | primary por defecto |
Valores de cta.variant: primary, secondary, link
Valores de baseSection.variant
| Valor | Título en Studio |
|---|---|
default | Por defecto |
dark | Oscura |
light | Clara |
split | Dividida |
page
Categoría: Document
Export JS: pageDocument
Grupos: content (por defecto), seo
| Campo | Tipo Sanity | Grupo | Requerido | Notas |
|---|---|---|---|---|
title | string | content | Sí | Solo visible en el Studio |
slug | slug | content | Sí | Generado desde title |
sections | array | content | No | Tipos: baseSection |
seo | seo | seo | No | Ver tipo seo |
indexPage
Categoría: Document
Export JS: indexPageDocument
Grupos: content (por defecto), seo
| Campo | Tipo Sanity | Grupo | Requerido | Notas |
|---|---|---|---|---|
title | string | content | Sí | Solo visible en el Studio |
slug | slug | content | Sí | Generado desde title |
collectionType | string | content | Sí | Ver valores abajo |
sectionsTop | array | content | No | Tipos: baseSection |
sectionsBottom | array | content | No | Tipos: baseSection |
seo | seo | seo | No | Ver tipo seo |
Valores de collectionType: post, case, service
Last updated on