Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sanity] Create event Schema #11

Open
3 of 4 tasks
jhern603 opened this issue Sep 10, 2021 · 2 comments
Open
3 of 4 tasks

[Sanity] Create event Schema #11

jhern603 opened this issue Sep 10, 2021 · 2 comments
Assignees
Labels
back-end Back-end task

Comments

@jhern603
Copy link

jhern603 commented Sep 10, 2021

Description

Create a schema that holds an event object with the following fields:

  • Name (event name)
  • Program linked from Program schema
  • Flyer (image) referenced from image schema
  • Links referenced from link schema
@jhern603 jhern603 added the back-end Back-end task label Sep 10, 2021
@ZiadMalik1
Copy link
Collaborator

Everything except Program Schema Cross-reference. Along with that, am not sure how to implement the desired formatting of:

import createSchema from "part:@sanity/base/schema-creator";
import schemaTypes from "all:part:@sanity/base/schema-type";

export default createSchema({
name: "schemaName",
types: schemaTypes.concat([
{...

@ZiadMalik1
Copy link
Collaborator

Created Rich Text Schema to reference both in Event Schemas and in Images Schema to allow for Description/Alt forming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Back-end task
Projects
None yet
Development

No branches or pull requests

2 participants