Skip to content

Is it possible to model a content type as a singleton? #484

Description

@Svish

It's a common pattern to create so called "Settings"-pages to make it possible for editors to fill out details used for various purposes on a site. These "pages" should be unique and only one instance of them should exist.

With the Sanity CMS it's possible to create these as actual Singletons, with a preset, known, key/id, and it's actually not possible to create duplicates of these.

Is there any way to do something similar when modelling content for Optimizely and this SDK/CLI?

  • Mark a content type as a singleton?
  • Make it impossible to create more than one instance of that content type?
  • Make it easy to look it up using a known key?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions