Josh Lind
Josh Lind
Yeah, objective is a doc. ``` export default { name: "objective", type: "document", title: "Objective", ``` Maybe there's a way to create an object that contains either the doc or...
Thanks! For clarity, users need to either pick from a library of choices or create a one-off. Two sites... 1. Page sections, create a new section or reference one from...
Pretty sure this feature **does not** exist yet. Forcing editors to know they must exit document authoring flow to go create some other document, then go back and reference it......
It's more like a default value than an init value.
@ajmalafif ```javascript exports.createSchemaCustomization = ({ actions, schema }) => { actions.createTypes([ // attach related posts to each post page schema.buildObjectType({ interfaces: ["Node"], name: "SanityPost", fields: { relatedPosts: { type: "[SanityPost]",...
Found the solution today, it was there all along... create a PortableText block type with a table field type. I borrowed from Holly Gronau via Slack. https://sanity-io-land.slack.com/archives/C9Z7RC3V1/p1664222574532039?thread_ts=1664201769.927669&cid=C9Z7RC3V1 ``` export default...
Wish I'd seen that before I wrote this, handy if you'd prefer an array of items with a `_key` property. ``` javascript /** * Access records matching a string. *...
Here's a possibility... https://github.com/andris9/jStorage/pull/96
OR you could include two versions of jQuery on the page with no-conflict mode in another namespace. It's a great way to transition between versions over a few iterations.
That code **would not** save the value, just copy it with an updated deep value. To save you would need to... ``` javascript var data = $.jStorage.get('data'); data.authors[33].books[5].title = 'See...