Skip to main content

Sanity Schemas

This document describes the Sanity content schemas used in Infowebplus.

Schema Location

Schemas are defined in studio/schemas/ directory.

Content Types

Hero

Hero section content per language.

Fields:

  • Title
  • Subtitle
  • CTA button
  • Background image
  • Localization

Service

Service listings with features and technologies.

Fields:

  • Title
  • Description
  • Features
  • Technologies
  • Icon
  • Localization

Testimonial

Client testimonials.

Fields:

  • Client name
  • Company
  • Testimonial text
  • Rating
  • Avatar image

Site Settings

Global site settings.

Fields:

  • Logo
  • Social links
  • Contact information (legacy contactPhone field - see Contact Information for new contactPhones array)
  • Footer content (moved to Footer document - see Footer Configuration)

Note: The footerText field has been moved to the Footer document. See Migration Guide for details.

Quote Settings

Quote calculator configuration.

Fields:

  • Project types
  • Features
  • Complexity levels
  • Timeline options
  • Pricing settings
  • Country multipliers

Contact Information

Contact information supports multiple phone numbers with location-based display.

Fields:

  • contactPhones (array): Multiple phone numbers
    • number (string, required): Phone number
    • label (localized object, optional): Label (e.g., "Main", "Sales", "Support")
      • Supports: en, es, ro
    • displayLocation (array, required): Where to display
      • Options: "contact", "footer", or both
  • contactPhone (string, legacy): Single phone number (fallback)

See Contact Information for detailed documentation.

Footer configuration document.

Fields:

  • footerText (localized text): Main footer description text
  • menus (array): Navigation menus for footer
  • copyright (object): Copyright information
  • referral (object, optional): Referral program section

Note: footerText was moved from siteSettings to this document. See Migration Guide for details.

See Footer Configuration for detailed documentation.

Legal pages (Privacy Policy, Terms of Service, etc.).

Fields:

  • title (localized object): Page title
  • slug (slug): URL slug
  • content (array of blocks): Page content
  • publishedAt (datetime): Publication date (displays as "Last updated" on frontend)

See Legal Pages for detailed documentation.

Adding New Schemas

  1. Create schema file in studio/schemas/
  2. Export schema definition
  3. Import in studio/schemas/index.ts
  4. Restart Sanity Studio

Next Steps