[{"data":1,"prerenderedAt":1888},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-content-modeling-fields-file":478,"-docs-core-content-modeling-fields-file-surround":1654,"mdc--x3lu8g-key":1659,"mdc--5ugjsa-key":1670,"mdc--evu2iu-key":1679,"mdc-rlfo-key":1688,"mdc--dmjfhf-key":1705,"mdc--sz1000-key":1721,"mdc--z504j2-key":1737,"mdc-of2q3a-key":1753,"mdc--vl48ac-key":1762,"mdc--j75b70-key":1777,"mdc--rb8zmg-key":1798,"mdc-od5rku-key":1812,"mdc--bg6odx-key":1821,"mdc-qrsd8t-key":1830,"mdc--z84m0w-key":1846,"mdc-7oq4f5-key":1855,"mdc--ptzd4t-key":1872},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":68,"body":480,"description":1648,"extension":1649,"links":1650,"meta":1651,"navigation":1026,"path":69,"seo":1652,"stem":70,"__hash__":1653},"docs\u002Fdocs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file.md",{"type":481,"value":482,"toc":1641},"minimark",[483,504,507,512,735,741,876,900,905,1539,1543,1554,1558,1634,1637],[484,485,486,487,491,492,496,497,503],"p",{},"A ",[488,489,490],"code",{},"file"," field holds a file from the ",[493,494,495],"a",{"href":117},"media library",", like a PDF, a ZIP or a video. For images with responsive sizes, use an ",[493,498,499,502],{"href":77},[488,500,501],{},"image"," field",".",[505,506],"field-preview",{"name":490},[508,509,511],"h2",{"id":510},"example","Example",[513,514,520],"pre",{"className":515,"code":516,"filename":517,"language":518,"meta":519,"style":519},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export const events = defineCollection({\n  fields: {\n    title: { type: \"text\", required: true },\n    programme: { type: \"file\", accept: [\"application\u002Fpdf\"], folder: \"programmes\" },\n    downloads: { type: \"file\", many: true, maxSize: 50 * 1024 ** 2 },\n  },\n});\n","cms\u002Fcollections\u002Fevents.ts","ts","",[488,521,522,553,566,607,663,717,723],{"__ignoreMap":519},[523,524,527,531,535,539,543,547,550],"span",{"class":525,"line":526},"line",1,[523,528,530],{"class":529},"s7zQu","export",[523,532,534],{"class":533},"spNyl"," const",[523,536,538],{"class":537},"sTEyZ"," events ",[523,540,542],{"class":541},"sMK4o","=",[523,544,546],{"class":545},"s2Zo4"," defineCollection",[523,548,549],{"class":537},"(",[523,551,552],{"class":541},"{\n",[523,554,556,560,563],{"class":525,"line":555},2,[523,557,559],{"class":558},"swJcz","  fields",[523,561,562],{"class":541},":",[523,564,565],{"class":541}," {\n",[523,567,569,572,574,577,580,582,585,589,592,595,598,600,604],{"class":525,"line":568},3,[523,570,571],{"class":558},"    title",[523,573,562],{"class":541},[523,575,576],{"class":541}," {",[523,578,579],{"class":558}," type",[523,581,562],{"class":541},[523,583,584],{"class":541}," \"",[523,586,588],{"class":587},"sfazB","text",[523,590,591],{"class":541},"\"",[523,593,594],{"class":541},",",[523,596,597],{"class":558}," required",[523,599,562],{"class":541},[523,601,603],{"class":602},"sfNiH"," true",[523,605,606],{"class":541}," },\n",[523,608,610,613,615,617,619,621,623,625,627,629,632,634,637,639,642,644,647,649,652,654,656,659,661],{"class":525,"line":609},4,[523,611,612],{"class":558},"    programme",[523,614,562],{"class":541},[523,616,576],{"class":541},[523,618,579],{"class":558},[523,620,562],{"class":541},[523,622,584],{"class":541},[523,624,490],{"class":587},[523,626,591],{"class":541},[523,628,594],{"class":541},[523,630,631],{"class":558}," accept",[523,633,562],{"class":541},[523,635,636],{"class":537}," [",[523,638,591],{"class":541},[523,640,641],{"class":587},"application\u002Fpdf",[523,643,591],{"class":541},[523,645,646],{"class":537},"]",[523,648,594],{"class":541},[523,650,651],{"class":558}," folder",[523,653,562],{"class":541},[523,655,584],{"class":541},[523,657,658],{"class":587},"programmes",[523,660,591],{"class":541},[523,662,606],{"class":541},[523,664,666,669,671,673,675,677,679,681,683,685,688,690,692,694,697,699,703,706,709,712,715],{"class":525,"line":665},5,[523,667,668],{"class":558},"    downloads",[523,670,562],{"class":541},[523,672,576],{"class":541},[523,674,579],{"class":558},[523,676,562],{"class":541},[523,678,584],{"class":541},[523,680,490],{"class":587},[523,682,591],{"class":541},[523,684,594],{"class":541},[523,686,687],{"class":558}," many",[523,689,562],{"class":541},[523,691,603],{"class":602},[523,693,594],{"class":541},[523,695,696],{"class":558}," maxSize",[523,698,562],{"class":541},[523,700,702],{"class":701},"sbssI"," 50",[523,704,705],{"class":541}," *",[523,707,708],{"class":701}," 1024",[523,710,711],{"class":541}," **",[523,713,714],{"class":701}," 2",[523,716,606],{"class":541},[523,718,720],{"class":525,"line":719},6,[523,721,722],{"class":541},"  },\n",[523,724,726,729,732],{"class":525,"line":725},7,[523,727,728],{"class":541},"}",[523,730,731],{"class":537},")",[523,733,734],{"class":541},";\n",[484,736,737,738,562],{},"A read loads the file, like a ",[493,739,740],{"href":89},"relation",[513,742,744],{"className":515,"code":743,"language":518,"meta":519,"style":519},"{\n  id: \"m7\",\n  url: \"\u002F_tenon\u002Fmedia\u002Ffiles\u002Fprogrammes\u002Fprogramme.pdf\",\n  alt: null,\n  mimeType: \"application\u002Fpdf\",\n  size: 182044,\n  folder: \"programmes\",\n  filename: \"programme.pdf\",\n  key: \"programmes\u002Fprogramme.pdf\",\n}\n",[488,745,746,750,768,784,794,809,821,836,853,870],{"__ignoreMap":519},[523,747,748],{"class":525,"line":526},[523,749,552],{"class":541},[523,751,752,756,758,760,763,765],{"class":525,"line":555},[523,753,755],{"class":754},"sBMFI","  id",[523,757,562],{"class":541},[523,759,584],{"class":541},[523,761,762],{"class":587},"m7",[523,764,591],{"class":541},[523,766,767],{"class":541},",\n",[523,769,770,773,775,777,780,782],{"class":525,"line":568},[523,771,772],{"class":754},"  url",[523,774,562],{"class":541},[523,776,584],{"class":541},[523,778,779],{"class":587},"\u002F_tenon\u002Fmedia\u002Ffiles\u002Fprogrammes\u002Fprogramme.pdf",[523,781,591],{"class":541},[523,783,767],{"class":541},[523,785,786,789,791],{"class":525,"line":609},[523,787,788],{"class":754},"  alt",[523,790,562],{"class":541},[523,792,793],{"class":541}," null,\n",[523,795,796,799,801,803,805,807],{"class":525,"line":665},[523,797,798],{"class":754},"  mimeType",[523,800,562],{"class":541},[523,802,584],{"class":541},[523,804,641],{"class":587},[523,806,591],{"class":541},[523,808,767],{"class":541},[523,810,811,814,816,819],{"class":525,"line":719},[523,812,813],{"class":754},"  size",[523,815,562],{"class":541},[523,817,818],{"class":701}," 182044",[523,820,767],{"class":541},[523,822,823,826,828,830,832,834],{"class":525,"line":725},[523,824,825],{"class":754},"  folder",[523,827,562],{"class":541},[523,829,584],{"class":541},[523,831,658],{"class":587},[523,833,591],{"class":541},[523,835,767],{"class":541},[523,837,839,842,844,846,849,851],{"class":525,"line":838},8,[523,840,841],{"class":754},"  filename",[523,843,562],{"class":541},[523,845,584],{"class":541},[523,847,848],{"class":587},"programme.pdf",[523,850,591],{"class":541},[523,852,767],{"class":541},[523,854,856,859,861,863,866,868],{"class":525,"line":855},9,[523,857,858],{"class":754},"  key",[523,860,562],{"class":541},[523,862,584],{"class":541},[523,864,865],{"class":587},"programmes\u002Fprogramme.pdf",[523,867,591],{"class":541},[523,869,767],{"class":541},[523,871,873],{"class":525,"line":872},10,[523,874,875],{"class":541},"}\n",[877,878,879,893],"ul",{},[880,881,882,885,886,889,890,503],"li",{},[488,883,884],{},"url"," is the file itself. Link to it, or pass it to a ",[488,887,888],{},"\u003Cvideo>"," or ",[488,891,892],{},"\u003Ciframe>",[880,894,895,896,899],{},"With ",[488,897,898],{},"populate: false",", the field holds the id.",[901,902,904],"h3",{"id":903},"render-it","Render it",[906,907,909,1134,1299],"code-group",{"sync":908},"framework",[513,910,914],{"className":911,"code":912,"filename":364,"language":913,"meta":519,"style":519},"language-astro shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{event.programme && (\n  \u003Ca href={event.programme.url} download>\n    Programme ({Math.round(event.programme.size \u002F 1024)} KB)\n  \u003C\u002Fa>\n)}\n\n\u003Cul>\n  {event.downloads?.map((file) => (\n    \u003Cli>\u003Ca href={file.url} download>{file.filename}\u003C\u002Fa>\u003C\u002Fli>\n  ))}\n\u003C\u002Ful>\n","astro",[488,915,916,935,968,1007,1016,1022,1028,1037,1069,1117,1124],{"__ignoreMap":519},[523,917,918,921,924,926,929,932],{"class":525,"line":526},[523,919,920],{"class":541},"{",[523,922,923],{"class":537},"event",[523,925,503],{"class":541},[523,927,928],{"class":537},"programme ",[523,930,931],{"class":541},"&&",[523,933,934],{"class":537}," (\n",[523,936,937,940,942,945,948,950,952,955,957,959,962,965],{"class":525,"line":555},[523,938,939],{"class":541},"  \u003C",[523,941,493],{"class":558},[523,943,944],{"class":533}," href",[523,946,947],{"class":541},"={",[523,949,923],{"class":537},[523,951,503],{"class":541},[523,953,954],{"class":537},"programme",[523,956,503],{"class":541},[523,958,884],{"class":537},[523,960,961],{"class":541},"} ",[523,963,964],{"class":533},"download",[523,966,967],{"class":541},">\n",[523,969,970,973,975,978,980,983,986,988,990,992,995,998,1000,1002,1004],{"class":525,"line":568},[523,971,972],{"class":537},"    Programme (",[523,974,920],{"class":541},[523,976,977],{"class":537},"Math",[523,979,503],{"class":541},[523,981,982],{"class":545},"round",[523,984,985],{"class":537},"(event",[523,987,503],{"class":541},[523,989,954],{"class":537},[523,991,503],{"class":541},[523,993,994],{"class":537},"size ",[523,996,997],{"class":541},"\u002F",[523,999,708],{"class":701},[523,1001,731],{"class":537},[523,1003,728],{"class":541},[523,1005,1006],{"class":537}," KB)\n",[523,1008,1009,1012,1014],{"class":525,"line":609},[523,1010,1011],{"class":541},"  \u003C\u002F",[523,1013,493],{"class":558},[523,1015,967],{"class":541},[523,1017,1018,1020],{"class":525,"line":665},[523,1019,731],{"class":537},[523,1021,875],{"class":541},[523,1023,1024],{"class":525,"line":719},[523,1025,1027],{"emptyLinePlaceholder":1026},true,"\n",[523,1029,1030,1033,1035],{"class":525,"line":725},[523,1031,1032],{"class":541},"\u003C",[523,1034,877],{"class":558},[523,1036,967],{"class":541},[523,1038,1039,1042,1044,1046,1049,1052,1055,1057,1059,1062,1064,1067],{"class":525,"line":838},[523,1040,1041],{"class":541},"  {",[523,1043,923],{"class":537},[523,1045,503],{"class":541},[523,1047,1048],{"class":537},"downloads",[523,1050,1051],{"class":541},"?.",[523,1053,1054],{"class":545},"map",[523,1056,549],{"class":537},[523,1058,549],{"class":541},[523,1060,490],{"class":1061},"sHdIc",[523,1063,731],{"class":541},[523,1065,1066],{"class":533}," =>",[523,1068,934],{"class":537},[523,1070,1071,1074,1076,1079,1081,1083,1085,1087,1089,1091,1093,1095,1098,1100,1102,1105,1108,1110,1113,1115],{"class":525,"line":855},[523,1072,1073],{"class":541},"    \u003C",[523,1075,880],{"class":558},[523,1077,1078],{"class":541},">\u003C",[523,1080,493],{"class":558},[523,1082,944],{"class":533},[523,1084,947],{"class":541},[523,1086,490],{"class":537},[523,1088,503],{"class":541},[523,1090,884],{"class":537},[523,1092,961],{"class":541},[523,1094,964],{"class":533},[523,1096,1097],{"class":541},">{",[523,1099,490],{"class":537},[523,1101,503],{"class":541},[523,1103,1104],{"class":537},"filename",[523,1106,1107],{"class":541},"}\u003C\u002F",[523,1109,493],{"class":558},[523,1111,1112],{"class":541},">\u003C\u002F",[523,1114,880],{"class":558},[523,1116,967],{"class":541},[523,1118,1119,1122],{"class":525,"line":872},[523,1120,1121],{"class":537},"  ))",[523,1123,875],{"class":541},[523,1125,1127,1130,1132],{"class":525,"line":1126},11,[523,1128,1129],{"class":541},"\u003C\u002F",[523,1131,877],{"class":558},[523,1133,967],{"class":541},[513,1135,1139],{"className":1136,"code":1137,"filename":368,"language":1138,"meta":519,"style":519},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Ctemplate>\n  \u003Ca v-if=\"event.programme\" :href=\"event.programme.url\" download>\n    Programme ({{ Math.round(event.programme.size \u002F 1024) }} KB)\n  \u003C\u002Fa>\n\n  \u003Cul>\n    \u003Cli v-for=\"file in event.downloads\" :key=\"file.id\">\n      \u003Ca :href=\"file.url\" download>{{ file.filename }}\u003C\u002Fa>\n    \u003C\u002Fli>\n  \u003C\u002Ful>\n\u003C\u002Ftemplate>\n","vue",[488,1140,1141,1150,1185,1190,1198,1202,1210,1242,1274,1283,1291],{"__ignoreMap":519},[523,1142,1143,1145,1148],{"class":525,"line":526},[523,1144,1032],{"class":541},[523,1146,1147],{"class":558},"template",[523,1149,967],{"class":541},[523,1151,1152,1154,1156,1159,1161,1163,1166,1168,1171,1173,1175,1178,1180,1183],{"class":525,"line":555},[523,1153,939],{"class":541},[523,1155,493],{"class":558},[523,1157,1158],{"class":533}," v-if",[523,1160,542],{"class":541},[523,1162,591],{"class":541},[523,1164,1165],{"class":587},"event.programme",[523,1167,591],{"class":541},[523,1169,1170],{"class":533}," :href",[523,1172,542],{"class":541},[523,1174,591],{"class":541},[523,1176,1177],{"class":587},"event.programme.url",[523,1179,591],{"class":541},[523,1181,1182],{"class":533}," download",[523,1184,967],{"class":541},[523,1186,1187],{"class":525,"line":568},[523,1188,1189],{"class":537},"    Programme ({{ Math.round(event.programme.size \u002F 1024) }} KB)\n",[523,1191,1192,1194,1196],{"class":525,"line":609},[523,1193,1011],{"class":541},[523,1195,493],{"class":558},[523,1197,967],{"class":541},[523,1199,1200],{"class":525,"line":665},[523,1201,1027],{"emptyLinePlaceholder":1026},[523,1203,1204,1206,1208],{"class":525,"line":719},[523,1205,939],{"class":541},[523,1207,877],{"class":558},[523,1209,967],{"class":541},[523,1211,1212,1214,1216,1219,1221,1223,1226,1228,1231,1233,1235,1238,1240],{"class":525,"line":725},[523,1213,1073],{"class":541},[523,1215,880],{"class":558},[523,1217,1218],{"class":533}," v-for",[523,1220,542],{"class":541},[523,1222,591],{"class":541},[523,1224,1225],{"class":587},"file in event.downloads",[523,1227,591],{"class":541},[523,1229,1230],{"class":533}," :key",[523,1232,542],{"class":541},[523,1234,591],{"class":541},[523,1236,1237],{"class":587},"file.id",[523,1239,591],{"class":541},[523,1241,967],{"class":541},[523,1243,1244,1247,1249,1251,1253,1255,1258,1260,1262,1265,1268,1270,1272],{"class":525,"line":838},[523,1245,1246],{"class":541},"      \u003C",[523,1248,493],{"class":558},[523,1250,1170],{"class":533},[523,1252,542],{"class":541},[523,1254,591],{"class":541},[523,1256,1257],{"class":587},"file.url",[523,1259,591],{"class":541},[523,1261,1182],{"class":533},[523,1263,1264],{"class":541},">",[523,1266,1267],{"class":537},"{{ file.filename }}",[523,1269,1129],{"class":541},[523,1271,493],{"class":558},[523,1273,967],{"class":541},[523,1275,1276,1279,1281],{"class":525,"line":855},[523,1277,1278],{"class":541},"    \u003C\u002F",[523,1280,880],{"class":558},[523,1282,967],{"class":541},[523,1284,1285,1287,1289],{"class":525,"line":872},[523,1286,1011],{"class":541},[523,1288,877],{"class":558},[523,1290,967],{"class":541},[523,1292,1293,1295,1297],{"class":525,"line":1126},[523,1294,1129],{"class":541},[523,1296,1147],{"class":558},[523,1298,967],{"class":541},[513,1300,1304],{"className":1301,"code":1302,"filename":372,"language":1303,"meta":519,"style":519},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C>\n  {event.programme && (\n    \u003Ca href={event.programme.url} download>\n      Programme ({Math.round(event.programme.size \u002F 1024)} KB)\n    \u003C\u002Fa>\n  )}\n\n  \u003Cul>\n    {event.downloads?.map((file) => (\n      \u003Cli key={file.id}>\n        \u003Ca href={file.url} download>\n          {file.filename}\n        \u003C\u002Fa>\n      \u003C\u002Fli>\n    ))}\n  \u003C\u002Ful>\n\u003C\u002F>\n","tsx",[488,1305,1306,1311,1325,1351,1384,1392,1399,1403,1411,1438,1459,1482,1496,1506,1516,1524,1533],{"__ignoreMap":519},[523,1307,1308],{"class":525,"line":526},[523,1309,1310],{"class":541},"\u003C>\n",[523,1312,1313,1315,1317,1319,1321,1323],{"class":525,"line":555},[523,1314,1041],{"class":541},[523,1316,923],{"class":537},[523,1318,503],{"class":541},[523,1320,928],{"class":537},[523,1322,931],{"class":541},[523,1324,934],{"class":537},[523,1326,1327,1329,1331,1333,1335,1337,1339,1341,1343,1345,1347,1349],{"class":525,"line":568},[523,1328,1073],{"class":541},[523,1330,493],{"class":558},[523,1332,944],{"class":533},[523,1334,947],{"class":541},[523,1336,923],{"class":537},[523,1338,503],{"class":541},[523,1340,954],{"class":537},[523,1342,503],{"class":541},[523,1344,884],{"class":537},[523,1346,961],{"class":541},[523,1348,964],{"class":533},[523,1350,967],{"class":541},[523,1352,1353,1356,1358,1360,1362,1364,1366,1368,1370,1372,1374,1376,1378,1380,1382],{"class":525,"line":609},[523,1354,1355],{"class":537},"      Programme (",[523,1357,920],{"class":541},[523,1359,977],{"class":537},[523,1361,503],{"class":541},[523,1363,982],{"class":545},[523,1365,985],{"class":537},[523,1367,503],{"class":541},[523,1369,954],{"class":537},[523,1371,503],{"class":541},[523,1373,994],{"class":537},[523,1375,997],{"class":541},[523,1377,708],{"class":701},[523,1379,731],{"class":537},[523,1381,728],{"class":541},[523,1383,1006],{"class":537},[523,1385,1386,1388,1390],{"class":525,"line":665},[523,1387,1278],{"class":541},[523,1389,493],{"class":558},[523,1391,967],{"class":541},[523,1393,1394,1397],{"class":525,"line":719},[523,1395,1396],{"class":537},"  )",[523,1398,875],{"class":541},[523,1400,1401],{"class":525,"line":725},[523,1402,1027],{"emptyLinePlaceholder":1026},[523,1404,1405,1407,1409],{"class":525,"line":838},[523,1406,939],{"class":541},[523,1408,877],{"class":558},[523,1410,967],{"class":541},[523,1412,1413,1416,1418,1420,1422,1424,1426,1428,1430,1432,1434,1436],{"class":525,"line":855},[523,1414,1415],{"class":541},"    {",[523,1417,923],{"class":537},[523,1419,503],{"class":541},[523,1421,1048],{"class":537},[523,1423,1051],{"class":541},[523,1425,1054],{"class":545},[523,1427,549],{"class":537},[523,1429,549],{"class":541},[523,1431,490],{"class":1061},[523,1433,731],{"class":541},[523,1435,1066],{"class":533},[523,1437,934],{"class":537},[523,1439,1440,1442,1444,1447,1449,1451,1453,1456],{"class":525,"line":872},[523,1441,1246],{"class":541},[523,1443,880],{"class":558},[523,1445,1446],{"class":533}," key",[523,1448,947],{"class":541},[523,1450,490],{"class":537},[523,1452,503],{"class":541},[523,1454,1455],{"class":537},"id",[523,1457,1458],{"class":541},"}>\n",[523,1460,1461,1464,1466,1468,1470,1472,1474,1476,1478,1480],{"class":525,"line":1126},[523,1462,1463],{"class":541},"        \u003C",[523,1465,493],{"class":558},[523,1467,944],{"class":533},[523,1469,947],{"class":541},[523,1471,490],{"class":537},[523,1473,503],{"class":541},[523,1475,884],{"class":537},[523,1477,961],{"class":541},[523,1479,964],{"class":533},[523,1481,967],{"class":541},[523,1483,1485,1488,1490,1492,1494],{"class":525,"line":1484},12,[523,1486,1487],{"class":541},"          {",[523,1489,490],{"class":537},[523,1491,503],{"class":541},[523,1493,1104],{"class":537},[523,1495,875],{"class":541},[523,1497,1499,1502,1504],{"class":525,"line":1498},13,[523,1500,1501],{"class":541},"        \u003C\u002F",[523,1503,493],{"class":558},[523,1505,967],{"class":541},[523,1507,1509,1512,1514],{"class":525,"line":1508},14,[523,1510,1511],{"class":541},"      \u003C\u002F",[523,1513,880],{"class":558},[523,1515,967],{"class":541},[523,1517,1519,1522],{"class":525,"line":1518},15,[523,1520,1521],{"class":537},"    ))",[523,1523,875],{"class":541},[523,1525,1527,1529,1531],{"class":525,"line":1526},16,[523,1528,1011],{"class":541},[523,1530,877],{"class":558},[523,1532,967],{"class":541},[523,1534,1536],{"class":525,"line":1535},17,[523,1537,1538],{"class":541},"\u003C\u002F>\n",[508,1540,1542],{"id":1541},"deleting-a-file","Deleting a file",[484,1544,1545,1546,1549,1550,1553],{},"A file that a field uses cannot be deleted. The delete fails with a ",[488,1547,1548],{},"409"," and lists the documents that use it. Set ",[488,1551,1552],{},"onDelete: \"set-null\""," to clear the field instead.",[508,1555,1557],{"id":1556},"options","Options",[1559,1560,1561,1567,1579,1596,1604,1619],"field-group",{},[1562,1563],"field",{"name":1564,"type":1565,":required":1566},"type","\"file\"","true",[1562,1568,1571,1572,1575,1576,503],{"name":1569,"type":1570},"many","boolean","Store a list of files instead of one. With ",[488,1573,1574],{},"required",", at least one. Default ",[488,1577,1578],{},"false",[1562,1580,1583,1584,1587,1588,1591,1592,1595],{"name":1581,"type":1582},"accept","string[]","The allowed MIME types, like ",[488,1585,1586],{},"[\"application\u002Fpdf\"]",". ",[488,1589,1590],{},"image\u002F*"," works. Default: all types that ",[488,1593,1594],{},"media.accept"," allows.",[1562,1597,1600,1601,503],{"name":1598,"type":1599},"maxSize","number","The largest file in bytes. It narrows ",[488,1602,1603],{},"media.maxSize",[1562,1605,1609,1610,1614,1615,1618],{"name":1606,"type":1607,":badges":1608},"folder","string","[{\"label\":\"Admin only\",\"color\":\"note\"}]","The folder that ",[1611,1612,1613],"strong",{},"Upload new"," in the field puts the file in, like ",[488,1616,1617],{},"\"downloads\"",". Default: the root.",[1562,1620,1623,1624,1627,1628,1630,1631,503],{"name":1621,"type":1622},"onDelete","\"restrict\" | \"set-null\"","What happens when the file is deleted. Default ",[488,1625,1626],{},"\"restrict\"",". A ",[488,1629,1574],{}," field cannot use ",[488,1632,1633],{},"\"set-null\"",[1635,1636],"field-common-options",{},[1638,1639,1640],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}",{"title":519,"searchDepth":555,"depth":555,"links":1642},[1643,1646,1647],{"id":510,"depth":555,"text":511,"children":1644},[1645],{"id":903,"depth":568,"text":904},{"id":1541,"depth":555,"text":1542},{"id":1556,"depth":555,"text":1557},"Any file from the media library, like a PDF.","md",null,{},{"title":68,"description":1648},"77f0sDq5YCyRK6t5CCEa8BmmSv4XxHHVYQoRXgs-v_Q",[1655,1657],{"title":64,"path":65,"stem":66,"description":1656,"children":-1},"A calendar day, or a moment in time stored in UTC.",{"title":72,"path":73,"stem":74,"description":1658,"children":-1},"Fields nested under one key, shown as one section in the admin.",{"data":1660,"body":1661},{},{"type":1662,"children":1663},"root",[1664],{"type":1665,"tag":484,"props":1666,"children":1667},"element",{},[1668],{"type":588,"value":1669},"The label in the admin. Defaults to the key. Pass an object to translate it.",{"data":1671,"body":1672},{},{"type":1662,"children":1673},[1674],{"type":1665,"tag":484,"props":1675,"children":1676},{},[1677],{"type":588,"value":1678},"Help text below the input.",{"data":1680,"body":1681},{},{"type":1662,"children":1682},[1683],{"type":1665,"tag":484,"props":1684,"children":1685},{},[1686],{"type":588,"value":1687},"The value MUST be present. A list needs at least one item.",{"data":1689,"body":1690},{},{"type":1662,"children":1691},[1692],{"type":1665,"tag":484,"props":1693,"children":1694},{},[1695,1697,1703],{"type":588,"value":1696},"The value of a new document, when the field is missing. A plain value also fills the new form in the admin. A function, like ",{"type":1665,"tag":488,"props":1698,"children":1700},{"className":1699},[],[1701],{"type":588,"value":1702},"({ user }) => user?.id",{"type":588,"value":1704},", runs on the server only.",{"data":1706,"body":1707},{},{"type":1662,"children":1708},[1709],{"type":1665,"tag":484,"props":1710,"children":1711},{},[1712,1714,1720],{"type":588,"value":1713},"No other document of the collection has the same value. See ",{"type":1665,"tag":493,"props":1715,"children":1717},{"href":1716},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#validation",[1718],{"type":588,"value":1719},"Validation",{"type":588,"value":503},{"data":1722,"body":1723},{},{"type":1662,"children":1724},[1725],{"type":1665,"tag":484,"props":1726,"children":1727},{},[1728,1730,1736],{"type":588,"value":1729},"Your own check. See ",{"type":1665,"tag":493,"props":1731,"children":1733},{"href":1732},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#your-own-checks",[1734],{"type":588,"value":1735},"Your own checks",{"type":588,"value":503},{"data":1738,"body":1739},{},{"type":1662,"children":1740},[1741],{"type":1665,"tag":484,"props":1742,"children":1743},{},[1744,1746,1752],{"type":588,"value":1745},"Show the field only when other values match. See ",{"type":1665,"tag":493,"props":1747,"children":1749},{"href":1748},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#conditions",[1750],{"type":588,"value":1751},"Conditions",{"type":588,"value":503},{"data":1754,"body":1755},{},{"type":1662,"children":1756},[1757],{"type":1665,"tag":484,"props":1758,"children":1759},{},[1760],{"type":588,"value":1761},"Public reads leave the value out. Signed-in users and server code see it.",{"data":1763,"body":1764},{},{"type":1662,"children":1765},[1766],{"type":1665,"tag":484,"props":1767,"children":1768},{},[1769,1771,1776],{"type":588,"value":1770},"Who can read and write this field. See ",{"type":1665,"tag":493,"props":1772,"children":1773},{"href":206},[1774],{"type":588,"value":1775},"Access control",{"type":588,"value":503},{"data":1778,"body":1779},{},{"type":1662,"children":1780},[1781],{"type":1665,"tag":484,"props":1782,"children":1783},{},[1784,1786,1791,1793,1797],{"type":588,"value":1785},"In a localized collection, every field is stored per language. ",{"type":1665,"tag":488,"props":1787,"children":1789},{"className":1788},[],[1790],{"type":588,"value":1578},{"type":588,"value":1792}," shares this field between languages. Only on top-level fields. See ",{"type":1665,"tag":493,"props":1794,"children":1795},{"href":168},[1796],{"type":588,"value":167},{"type":588,"value":503},{"data":1799,"body":1800},{},{"type":1662,"children":1801},[1802],{"type":1665,"tag":484,"props":1803,"children":1804},{},[1805,1807,1811],{"type":588,"value":1806},"Functions that run for this field on every write and read, before the collection's hooks. See ",{"type":1665,"tag":493,"props":1808,"children":1809},{"href":172},[1810],{"type":588,"value":171},{"type":588,"value":503},{"data":1813,"body":1814},{},{"type":1662,"children":1815},[1816],{"type":1665,"tag":484,"props":1817,"children":1818},{},[1819],{"type":588,"value":1820},"The admin does not show the input. The value still saves. Use it for values a hook sets.",{"data":1822,"body":1823},{},{"type":1662,"children":1824},[1825],{"type":1665,"tag":484,"props":1826,"children":1827},{},[1828],{"type":588,"value":1829},"The admin shows the input disabled. Code and hooks can still write it.",{"data":1831,"body":1832},{},{"type":1662,"children":1833},[1834],{"type":1665,"tag":484,"props":1835,"children":1836},{},[1837,1839,1845],{"type":588,"value":1838},"The share of the row the field takes. Fields next to each other fill a row. In a narrow form, every field takes the full width. Default ",{"type":1665,"tag":488,"props":1840,"children":1842},{"className":1841},[],[1843],{"type":588,"value":1844},"\"full\"",{"type":588,"value":503},{"data":1847,"body":1848},{},{"type":1662,"children":1849},[1850],{"type":1665,"tag":484,"props":1851,"children":1852},{},[1853],{"type":588,"value":1854},"A line above the field, to break up a long form. A string adds a heading above the line.",{"data":1856,"body":1857},{},{"type":1662,"children":1858},[1859],{"type":1665,"tag":484,"props":1860,"children":1861},{},[1862,1864,1870],{"type":588,"value":1863},"The tab that shows this field. Define the tabs with ",{"type":1665,"tag":488,"props":1865,"children":1867},{"className":1866},[],[1868],{"type":588,"value":1869},"tabs",{"type":588,"value":1871}," on the collection, global, group or list item.",{"data":1873,"body":1874},{},{"type":1662,"children":1875},[1876],{"type":1665,"tag":484,"props":1877,"children":1878},{},[1879,1881,1887],{"type":588,"value":1880},"The box that holds this field. Define the boxes with ",{"type":1665,"tag":488,"props":1882,"children":1884},{"className":1883},[],[1885],{"type":588,"value":1886},"fieldsets",{"type":588,"value":503},1795884701183]