[{"data":1,"prerenderedAt":2000},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-customization-custom-pages-and-actions":478,"-docs-core-customization-custom-pages-and-actions-surround":1995},[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":227,"body":480,"description":1989,"extension":1990,"links":1991,"meta":1992,"navigation":550,"path":228,"seo":1993,"stem":229,"__hash__":1994},"docs\u002Fdocs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions.md",{"type":481,"value":482,"toc":1979},"minimark",[483,487,492,499,812,883,1120,1139,1221,1225,1231,1304,1316,1320,1334,1403,1438,1455,1459,1466,1511,1521,1525,1531,1607,1613,1617,1620,1862,1926,1937,1941,1975],[484,485,486],"p",{},"A custom page adds a view of your own to the admin, like a dashboard, a report or a tool. An action adds a button that runs code on the server, like a deploy. This page shows how to add both.",[488,489,491],"h2",{"id":490},"add-a-page","Add a page",[484,493,494,498],{},[495,496,497],"code",{},"pages"," adds pages by key. This one lists the latest posts:",[500,501,507],"pre",{"className":502,"code":503,"filename":504,"language":505,"meta":506,"style":506},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { mountStats } from \".\u002Fsrc\u002Fadmin\u002Fstats.client\";\n\nexport default defineCms({\n  \u002F\u002F ...\n  admin: {\n    pages: {\n      stats: {\n        title: \"Stats\",\n        nav: { icon: \"chart-bar\" },\n        load: async ({ cms }) => ({\n          posts: await cms.find(\"posts\", { limit: 5, select: { title: true }, populate: false }),\n        }),\n        mount: mountStats,\n      },\n    },\n  },\n});\n","tenon.config.ts","ts","",[495,508,509,545,552,571,578,591,601,611,629,654,684,762,772,784,790,796,802],{"__ignoreMap":506},[510,511,514,518,522,526,529,532,535,539,542],"span",{"class":512,"line":513},"line",1,[510,515,517],{"class":516},"s7zQu","import",[510,519,521],{"class":520},"sMK4o"," {",[510,523,525],{"class":524},"sTEyZ"," mountStats",[510,527,528],{"class":520}," }",[510,530,531],{"class":516}," from",[510,533,534],{"class":520}," \"",[510,536,538],{"class":537},"sfazB",".\u002Fsrc\u002Fadmin\u002Fstats.client",[510,540,541],{"class":520},"\"",[510,543,544],{"class":520},";\n",[510,546,548],{"class":512,"line":547},2,[510,549,551],{"emptyLinePlaceholder":550},true,"\n",[510,553,555,558,561,565,568],{"class":512,"line":554},3,[510,556,557],{"class":516},"export",[510,559,560],{"class":516}," default",[510,562,564],{"class":563},"s2Zo4"," defineCms",[510,566,567],{"class":524},"(",[510,569,570],{"class":520},"{\n",[510,572,574],{"class":512,"line":573},4,[510,575,577],{"class":576},"sHwdD","  \u002F\u002F ...\n",[510,579,581,585,588],{"class":512,"line":580},5,[510,582,584],{"class":583},"swJcz","  admin",[510,586,587],{"class":520},":",[510,589,590],{"class":520}," {\n",[510,592,594,597,599],{"class":512,"line":593},6,[510,595,596],{"class":583},"    pages",[510,598,587],{"class":520},[510,600,590],{"class":520},[510,602,604,607,609],{"class":512,"line":603},7,[510,605,606],{"class":583},"      stats",[510,608,587],{"class":520},[510,610,590],{"class":520},[510,612,614,617,619,621,624,626],{"class":512,"line":613},8,[510,615,616],{"class":583},"        title",[510,618,587],{"class":520},[510,620,534],{"class":520},[510,622,623],{"class":537},"Stats",[510,625,541],{"class":520},[510,627,628],{"class":520},",\n",[510,630,632,635,637,639,642,644,646,649,651],{"class":512,"line":631},9,[510,633,634],{"class":583},"        nav",[510,636,587],{"class":520},[510,638,521],{"class":520},[510,640,641],{"class":583}," icon",[510,643,587],{"class":520},[510,645,534],{"class":520},[510,647,648],{"class":537},"chart-bar",[510,650,541],{"class":520},[510,652,653],{"class":520}," },\n",[510,655,657,660,662,666,669,673,676,679,682],{"class":512,"line":656},10,[510,658,659],{"class":563},"        load",[510,661,587],{"class":520},[510,663,665],{"class":664},"spNyl"," async",[510,667,668],{"class":520}," ({",[510,670,672],{"class":671},"sHdIc"," cms",[510,674,675],{"class":520}," })",[510,677,678],{"class":664}," =>",[510,680,681],{"class":524}," (",[510,683,570],{"class":520},[510,685,687,690,692,695,697,700,703,705,707,710,712,715,717,720,722,726,728,731,733,735,738,740,744,747,750,752,755,757,760],{"class":512,"line":686},11,[510,688,689],{"class":583},"          posts",[510,691,587],{"class":520},[510,693,694],{"class":516}," await",[510,696,672],{"class":524},[510,698,699],{"class":520},".",[510,701,702],{"class":563},"find",[510,704,567],{"class":524},[510,706,541],{"class":520},[510,708,709],{"class":537},"posts",[510,711,541],{"class":520},[510,713,714],{"class":520},",",[510,716,521],{"class":520},[510,718,719],{"class":583}," limit",[510,721,587],{"class":520},[510,723,725],{"class":724},"sbssI"," 5",[510,727,714],{"class":520},[510,729,730],{"class":583}," select",[510,732,587],{"class":520},[510,734,521],{"class":520},[510,736,737],{"class":583}," title",[510,739,587],{"class":520},[510,741,743],{"class":742},"sfNiH"," true",[510,745,746],{"class":520}," },",[510,748,749],{"class":583}," populate",[510,751,587],{"class":520},[510,753,754],{"class":742}," false",[510,756,528],{"class":520},[510,758,759],{"class":524},")",[510,761,628],{"class":520},[510,763,765,768,770],{"class":512,"line":764},12,[510,766,767],{"class":520},"        }",[510,769,759],{"class":524},[510,771,628],{"class":520},[510,773,775,778,780,782],{"class":512,"line":774},13,[510,776,777],{"class":583},"        mount",[510,779,587],{"class":520},[510,781,525],{"class":524},[510,783,628],{"class":520},[510,785,787],{"class":512,"line":786},14,[510,788,789],{"class":520},"      },\n",[510,791,793],{"class":512,"line":792},15,[510,794,795],{"class":520},"    },\n",[510,797,799],{"class":512,"line":798},16,[510,800,801],{"class":520},"  },\n",[510,803,805,808,810],{"class":512,"line":804},17,[510,806,807],{"class":520},"}",[510,809,759],{"class":524},[510,811,544],{"class":520},[500,813,816],{"className":502,"code":814,"filename":815,"language":505,"meta":506,"style":506},"import { renderVue } from \"tenoncms\u002Fadmin\u002Fvue\";\nimport Stats from \".\u002FStats.vue\";\n\nexport const mountStats = renderVue(Stats);\n","src\u002Fadmin\u002Fstats.client.ts",[495,817,818,840,859,863],{"__ignoreMap":506},[510,819,820,822,824,827,829,831,833,836,838],{"class":512,"line":513},[510,821,517],{"class":516},[510,823,521],{"class":520},[510,825,826],{"class":524}," renderVue",[510,828,528],{"class":520},[510,830,531],{"class":516},[510,832,534],{"class":520},[510,834,835],{"class":537},"tenoncms\u002Fadmin\u002Fvue",[510,837,541],{"class":520},[510,839,544],{"class":520},[510,841,842,844,847,850,852,855,857],{"class":512,"line":547},[510,843,517],{"class":516},[510,845,846],{"class":524}," Stats ",[510,848,849],{"class":516},"from",[510,851,534],{"class":520},[510,853,854],{"class":537},".\u002FStats.vue",[510,856,541],{"class":520},[510,858,544],{"class":520},[510,860,861],{"class":512,"line":554},[510,862,551],{"emptyLinePlaceholder":550},[510,864,865,867,870,873,876,878,881],{"class":512,"line":573},[510,866,557],{"class":516},[510,868,869],{"class":664}," const",[510,871,872],{"class":524}," mountStats ",[510,874,875],{"class":520},"=",[510,877,826],{"class":563},[510,879,880],{"class":524},"(Stats)",[510,882,544],{"class":520},[500,884,889],{"className":885,"code":886,"filename":887,"language":888,"meta":506,"style":506},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport type { PageContext } from \"tenoncms\u002Fadmin\";\n\ndefineProps\u003CPageContext\u003C{ posts: { id: string; title: string }[] }>>();\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cul>\n    \u003Cli v-for=\"post in data.posts\" :key=\"post.id\">\n      \u003Ca :href=\"`${tenon.base}\u002Fcontent\u002Fcollections\u002Fposts\u002F${post.id}`\">{{ post.title }}\u003C\u002Fa>\n    \u003C\u002Fli>\n  \u003C\u002Ful>\n\u003C\u002Ftemplate>\n","src\u002Fadmin\u002FStats.vue","vue",[495,890,891,916,941,945,996,1005,1009,1018,1028,1062,1094,1103,1112],{"__ignoreMap":506},[510,892,893,896,899,902,905,907,909,911,913],{"class":512,"line":513},[510,894,895],{"class":520},"\u003C",[510,897,898],{"class":583},"script",[510,900,901],{"class":664}," setup",[510,903,904],{"class":664}," lang",[510,906,875],{"class":520},[510,908,541],{"class":520},[510,910,505],{"class":537},[510,912,541],{"class":520},[510,914,915],{"class":520},">\n",[510,917,918,920,923,925,928,930,932,934,937,939],{"class":512,"line":547},[510,919,517],{"class":516},[510,921,922],{"class":516}," type",[510,924,521],{"class":520},[510,926,927],{"class":524}," PageContext",[510,929,528],{"class":520},[510,931,531],{"class":516},[510,933,534],{"class":520},[510,935,936],{"class":537},"tenoncms\u002Fadmin",[510,938,541],{"class":520},[510,940,544],{"class":520},[510,942,943],{"class":512,"line":554},[510,944,551],{"emptyLinePlaceholder":550},[510,946,947,950,952,956,959,962,964,966,969,971,974,977,979,981,983,985,988,991,994],{"class":512,"line":573},[510,948,949],{"class":563},"defineProps",[510,951,895],{"class":520},[510,953,955],{"class":954},"sBMFI","PageContext",[510,957,958],{"class":520},"\u003C{",[510,960,961],{"class":583}," posts",[510,963,587],{"class":520},[510,965,521],{"class":520},[510,967,968],{"class":583}," id",[510,970,587],{"class":520},[510,972,973],{"class":954}," string",[510,975,976],{"class":520},";",[510,978,737],{"class":583},[510,980,587],{"class":520},[510,982,973],{"class":954},[510,984,528],{"class":520},[510,986,987],{"class":524},"[] ",[510,989,990],{"class":520},"}>>",[510,992,993],{"class":524},"()",[510,995,544],{"class":520},[510,997,998,1001,1003],{"class":512,"line":580},[510,999,1000],{"class":520},"\u003C\u002F",[510,1002,898],{"class":583},[510,1004,915],{"class":520},[510,1006,1007],{"class":512,"line":593},[510,1008,551],{"emptyLinePlaceholder":550},[510,1010,1011,1013,1016],{"class":512,"line":603},[510,1012,895],{"class":520},[510,1014,1015],{"class":583},"template",[510,1017,915],{"class":520},[510,1019,1020,1023,1026],{"class":512,"line":613},[510,1021,1022],{"class":520},"  \u003C",[510,1024,1025],{"class":583},"ul",[510,1027,915],{"class":520},[510,1029,1030,1033,1036,1039,1041,1043,1046,1048,1051,1053,1055,1058,1060],{"class":512,"line":631},[510,1031,1032],{"class":520},"    \u003C",[510,1034,1035],{"class":583},"li",[510,1037,1038],{"class":664}," v-for",[510,1040,875],{"class":520},[510,1042,541],{"class":520},[510,1044,1045],{"class":537},"post in data.posts",[510,1047,541],{"class":520},[510,1049,1050],{"class":664}," :key",[510,1052,875],{"class":520},[510,1054,541],{"class":520},[510,1056,1057],{"class":537},"post.id",[510,1059,541],{"class":520},[510,1061,915],{"class":520},[510,1063,1064,1067,1070,1073,1075,1077,1080,1082,1085,1088,1090,1092],{"class":512,"line":656},[510,1065,1066],{"class":520},"      \u003C",[510,1068,1069],{"class":583},"a",[510,1071,1072],{"class":664}," :href",[510,1074,875],{"class":520},[510,1076,541],{"class":520},[510,1078,1079],{"class":537},"`${tenon.base}\u002Fcontent\u002Fcollections\u002Fposts\u002F${post.id}`",[510,1081,541],{"class":520},[510,1083,1084],{"class":520},">",[510,1086,1087],{"class":524},"{{ post.title }}",[510,1089,1000],{"class":520},[510,1091,1069],{"class":583},[510,1093,915],{"class":520},[510,1095,1096,1099,1101],{"class":512,"line":686},[510,1097,1098],{"class":520},"    \u003C\u002F",[510,1100,1035],{"class":583},[510,1102,915],{"class":520},[510,1104,1105,1108,1110],{"class":512,"line":764},[510,1106,1107],{"class":520},"  \u003C\u002F",[510,1109,1025],{"class":583},[510,1111,915],{"class":520},[510,1113,1114,1116,1118],{"class":512,"line":774},[510,1115,1000],{"class":520},[510,1117,1015],{"class":583},[510,1119,915],{"class":520},[484,1121,1122,1123,1126,1127,1130,1131,1138],{},"A page renders like a ",[1069,1124,1125],{"href":224},"custom field",": a ",[495,1128,1129],{},"mount"," function from a ",[1069,1132,1134,1137],{"href":1133},"\u002Fdocs\u002Fcore\u002Fcustomization#browser-modules",[495,1135,1136],{},".client.ts"," module",", written in plain DOM, Vue, React or another library. It gets this context:",[1140,1141,1142,1155],"table",{},[1143,1144,1145],"thead",{},[1146,1147,1148,1152],"tr",{},[1149,1150,1151],"th",{},"Key",[1149,1153,1154],{},"Value",[1156,1157,1158,1176,1189,1207],"tbody",{},[1146,1159,1160,1166],{},[1161,1162,1163],"td",{},[495,1164,1165],{},"params",[1161,1167,1168,1169,1172,1173],{},"The route params, like ",[495,1170,1171],{},"{ id: \"42\" }"," for ",[495,1174,1175],{},"\u002Freports\u002F:id",[1146,1177,1178,1183],{},[1161,1179,1180],{},[495,1181,1182],{},"query",[1161,1184,1185,1186],{},"The query string, like ",[495,1187,1188],{},"{ tab: \"body\" }",[1146,1190,1191,1196],{},[1161,1192,1193],{},[495,1194,1195],{},"data",[1161,1197,1198,1199,1202,1203,1206],{},"What the page's ",[495,1200,1201],{},"load"," returned. ",[495,1204,1205],{},"undefined"," without one.",[1146,1208,1209,1214],{},[1161,1210,1211],{},[495,1212,1213],{},"tenon",[1161,1215,1216,1220],{},[1069,1217,1219],{"href":1218},"#helpers","Helpers"," from the admin",[1222,1223,1219],"h3",{"id":1224},"helpers",[484,1226,1227,1228,1230],{},"Every context in the admin has ",[495,1229,1213],{},", for pages and fields alike:",[1140,1232,1233,1243],{},[1143,1234,1235],{},[1146,1236,1237,1240],{},[1149,1238,1239],{},"Helper",[1149,1241,1242],{},"What it does",[1156,1244,1245,1259,1272,1287],{},[1146,1246,1247,1252],{},[1161,1248,1249],{},[495,1250,1251],{},"base",[1161,1253,1254,1255,1258],{},"The admin path, like ",[495,1256,1257],{},"\u002Fadmin",". Prefix your links with it.",[1146,1260,1261,1266],{},[1161,1262,1263],{},[495,1264,1265],{},"navigate(path)",[1161,1267,1268,1269,699],{},"Opens an admin view without a reload, like ",[495,1270,1271],{},"\u002Fcontent\u002Fsettings",[1146,1273,1274,1279],{},[1161,1275,1276],{},[495,1277,1278],{},"reload()",[1161,1280,1281,1282,1284,1285,699],{},"Runs the ",[495,1283,1201],{}," again, and passes the new ",[495,1286,1195],{},[1146,1288,1289,1294],{},[1161,1290,1291],{},[495,1292,1293],{},"locale",[1161,1295,1296,1297,1300,1301,699],{},"The admin language, ",[495,1298,1299],{},"en"," or ",[495,1302,1303],{},"de",[484,1305,1306,1307,1309,1310,1315],{},"A plain link under ",[495,1308,1251],{}," also opens in the admin without a reload. To change content from a page, use ",[1069,1311,1312],{"href":160},[495,1313,1314],{},"createClient()",". The editor's session makes writes work.",[488,1317,1319],{"id":1318},"routes","Routes",[484,1321,1322,1323,1326,1327,1330,1331,587],{},"A page opens at ",[495,1324,1325],{},"\u002F\u003Ckey>",", or at its ",[495,1328,1329],{},"route",". Where it opens depends on ",[495,1332,1333],{},"nav.display",[1140,1335,1336,1353],{},[1143,1337,1338],{},[1146,1339,1340,1344,1350],{},[1149,1341,1342],{},[495,1343,1333],{},[1149,1345,1346,1347],{},"URL of ",[495,1348,1349],{},"route: \"\u002Fstats\"",[1149,1351,1352],{},"Layout",[1156,1354,1355,1371,1385],{},[1146,1356,1357,1363,1368],{},[1161,1358,1359,1362],{},[495,1360,1361],{},"content",", the default",[1161,1364,1365],{},[495,1366,1367],{},"\u002Fadmin\u002Fcontent\u002Fstats",[1161,1369,1370],{},"Next to the content menu",[1146,1372,1373,1378,1383],{},[1161,1374,1375],{},[495,1376,1377],{},"settings",[1161,1379,1380],{},[495,1381,1382],{},"\u002Fadmin\u002Fcontent\u002Fsettings\u002Fstats",[1161,1384,1370],{},[1146,1386,1387,1395,1400],{},[1161,1388,1389,1300,1392],{},[495,1390,1391],{},"main",[495,1393,1394],{},"none",[1161,1396,1397],{},[495,1398,1399],{},"\u002Fadmin\u002Fstats",[1161,1401,1402],{},"Full width",[1025,1404,1405,1416,1423],{},[1035,1406,1407,1408,1411,1412,1415],{},"A route can have params, like ",[495,1409,1410],{},"route: \"\u002Freports\u002F:id\"",". Use ",[495,1413,1414],{},"nav: { display: \"none\" }"," for such a detail page.",[1035,1417,1418,1419,1422],{},"A page on a built-in path replaces that view. ",[495,1420,1421],{},"route: \"\u002Fcollections\u002Fposts\""," replaces the list of posts.",[1035,1424,1425,1426,1429,1430,1433,1434,1437],{},"The admin has no start page of its own: ",[495,1427,1428],{},"\u002F"," opens the content. A page with ",[495,1431,1432],{},"route: \"\u002F\""," and ",[495,1435,1436],{},"nav: { display: \"main\" }"," becomes the start page, like a dashboard.",[484,1439,1440,1443,1444,1433,1447,1450,1451,699],{},[495,1441,1442],{},"title",", ",[495,1445,1446],{},"description",[495,1448,1449],{},"nav"," work as for collections. See ",[1069,1452,1454],{"href":1453},"\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin#navigation","Navigation",[488,1456,1458],{"id":1457},"load-data","Load data",[484,1460,1461,1463,1464,699],{},[495,1462,1201],{}," runs on the server when the page opens, and again when its params or query change. The page gets the result as ",[495,1465,1195],{},[1025,1467,1468,1487,1494,1497,1500],{},[1035,1469,1470,1471,1474,1475,1478,1479,1481,1482,1433,1484,1486],{},"It gets the signed-in ",[495,1472,1473],{},"user",", their ",[495,1476,1477],{},"cms",", the admin ",[495,1480,1293],{},", and the ",[495,1483,1165],{},[495,1485,1182],{}," of the route.",[1035,1488,1489,1433,1491,1493],{},[495,1490,1165],{},[495,1492,1182],{}," come from the browser. Check them like any other input.",[1035,1495,1496],{},"It MUST only read, and MUST return JSON.",[1035,1498,1499],{},"Return only what the page needs. Being signed in does not make every server value fit for the browser.",[1035,1501,1502,1503,1505,1506,1510],{},"Reads follow the editor's perspective, so ",[495,1504,1201],{}," shows drafts in the ",[1507,1508,1509],"strong",{},"Drafts"," view.",[484,1512,1513,1514,1517,1518,1520],{},"When only the params or query change, the admin calls ",[495,1515,1516],{},"update(ctx)"," instead of mounting the page again. In Vue and React, these are new props, so watch ",[495,1519,1165],{}," to fetch again.",[488,1522,1524],{"id":1523},"the-page-header","The page header",[484,1526,1527,1530],{},[495,1528,1529],{},"pageHeader"," sets the bar above the page:",[1140,1532,1533,1542],{},[1143,1534,1535],{},[1146,1536,1537,1539],{},[1149,1538,1154],{},[1149,1540,1541],{},"Header",[1156,1543,1544,1559,1573,1581,1595],{},[1146,1545,1546,1551],{},[1161,1547,1548],{},[495,1549,1550],{},"true",[1161,1552,1553,1554,1433,1556,1558],{},"The title. The default for ",[495,1555,1361],{},[495,1557,1377],{}," pages.",[1146,1560,1561,1566],{},[1161,1562,1563],{},[495,1564,1565],{},"false",[1161,1567,1568,1569,1433,1571,1558],{},"None. The default for ",[495,1570,1391],{},[495,1572,1394],{},[1146,1574,1575,1578],{},[1161,1576,1577],{},"A string",[1161,1579,1580],{},"That text",[1146,1582,1583,1588],{},[1161,1584,1585],{},[495,1586,1587],{},"[{ label, to }]",[1161,1589,1590,1591,1594],{},"Breadcrumbs. ",[495,1592,1593],{},"to"," is relative to the admin path.",[1146,1596,1597,1600],{},[1161,1598,1599],{},"A browser export",[1161,1601,1602,1603,1606],{},"A function ",[495,1604,1605],{},"(crumbs, ctx)"," that returns breadcrumbs or an HTML string. It MUST be synchronous.",[1608,1609,1610,1611,699],"warning",{},"The admin does not escape the HTML string. Escape every value from the route, like ",[495,1612,1165],{},[488,1614,1616],{"id":1615},"actions","Actions",[484,1618,1619],{},"An action is a button in the top bar or the content menu. A click runs code on the server, and the admin shows the result as a toast. Actions need no browser code:",[500,1621,1623],{"className":502,"code":1622,"filename":504,"language":505,"meta":506,"style":506},"admin: {\n  actions: {\n    deploy: {\n      label: \"Deploy\",\n      nav: { icon: \"rocket\" },\n      confirm: \"Deploy the site now?\",\n      run: async () => {\n        const res = await fetch(process.env.DEPLOY_HOOK_URL!, { method: \"POST\" });\n        if (!res.ok) throw new Error(`The deploy hook answered ${res.status}`);\n        return \"Deploy started\";\n      },\n    },\n  },\n},\n",[495,1624,1625,1634,1643,1652,1668,1690,1706,1722,1776,1831,1845,1849,1853,1857],{"__ignoreMap":506},[510,1626,1627,1630,1632],{"class":512,"line":513},[510,1628,1629],{"class":954},"admin",[510,1631,587],{"class":520},[510,1633,590],{"class":520},[510,1635,1636,1639,1641],{"class":512,"line":547},[510,1637,1638],{"class":954},"  actions",[510,1640,587],{"class":520},[510,1642,590],{"class":520},[510,1644,1645,1648,1650],{"class":512,"line":554},[510,1646,1647],{"class":954},"    deploy",[510,1649,587],{"class":520},[510,1651,590],{"class":520},[510,1653,1654,1657,1659,1661,1664,1666],{"class":512,"line":573},[510,1655,1656],{"class":954},"      label",[510,1658,587],{"class":520},[510,1660,534],{"class":520},[510,1662,1663],{"class":537},"Deploy",[510,1665,541],{"class":520},[510,1667,628],{"class":520},[510,1669,1670,1673,1675,1677,1679,1681,1683,1686,1688],{"class":512,"line":580},[510,1671,1672],{"class":954},"      nav",[510,1674,587],{"class":520},[510,1676,521],{"class":520},[510,1678,641],{"class":954},[510,1680,587],{"class":520},[510,1682,534],{"class":520},[510,1684,1685],{"class":537},"rocket",[510,1687,541],{"class":520},[510,1689,653],{"class":520},[510,1691,1692,1695,1697,1699,1702,1704],{"class":512,"line":593},[510,1693,1694],{"class":954},"      confirm",[510,1696,587],{"class":520},[510,1698,534],{"class":520},[510,1700,1701],{"class":537},"Deploy the site now?",[510,1703,541],{"class":520},[510,1705,628],{"class":520},[510,1707,1708,1711,1713,1715,1718,1720],{"class":512,"line":603},[510,1709,1710],{"class":954},"      run",[510,1712,587],{"class":520},[510,1714,665],{"class":664},[510,1716,1717],{"class":520}," ()",[510,1719,678],{"class":664},[510,1721,590],{"class":520},[510,1723,1724,1727,1730,1733,1735,1738,1740,1743,1745,1748,1750,1753,1756,1758,1761,1763,1765,1768,1770,1772,1774],{"class":512,"line":613},[510,1725,1726],{"class":664},"        const",[510,1728,1729],{"class":524}," res",[510,1731,1732],{"class":520}," =",[510,1734,694],{"class":516},[510,1736,1737],{"class":563}," fetch",[510,1739,567],{"class":583},[510,1741,1742],{"class":524},"process",[510,1744,699],{"class":520},[510,1746,1747],{"class":524},"env",[510,1749,699],{"class":520},[510,1751,1752],{"class":524},"DEPLOY_HOOK_URL",[510,1754,1755],{"class":520},"!,",[510,1757,521],{"class":520},[510,1759,1760],{"class":583}," method",[510,1762,587],{"class":520},[510,1764,534],{"class":520},[510,1766,1767],{"class":537},"POST",[510,1769,541],{"class":520},[510,1771,528],{"class":520},[510,1773,759],{"class":583},[510,1775,544],{"class":520},[510,1777,1778,1781,1783,1786,1789,1791,1794,1797,1800,1803,1806,1808,1811,1814,1817,1819,1821,1824,1827,1829],{"class":512,"line":631},[510,1779,1780],{"class":516},"        if",[510,1782,681],{"class":583},[510,1784,1785],{"class":520},"!",[510,1787,1788],{"class":524},"res",[510,1790,699],{"class":520},[510,1792,1793],{"class":524},"ok",[510,1795,1796],{"class":583},") ",[510,1798,1799],{"class":516},"throw",[510,1801,1802],{"class":520}," new",[510,1804,1805],{"class":563}," Error",[510,1807,567],{"class":583},[510,1809,1810],{"class":520},"`",[510,1812,1813],{"class":537},"The deploy hook answered ",[510,1815,1816],{"class":520},"${",[510,1818,1788],{"class":524},[510,1820,699],{"class":520},[510,1822,1823],{"class":524},"status",[510,1825,1826],{"class":520},"}`",[510,1828,759],{"class":583},[510,1830,544],{"class":520},[510,1832,1833,1836,1838,1841,1843],{"class":512,"line":656},[510,1834,1835],{"class":516},"        return",[510,1837,534],{"class":520},[510,1839,1840],{"class":537},"Deploy started",[510,1842,541],{"class":520},[510,1844,544],{"class":520},[510,1846,1847],{"class":512,"line":686},[510,1848,789],{"class":520},[510,1850,1851],{"class":512,"line":764},[510,1852,795],{"class":520},[510,1854,1855],{"class":512,"line":774},[510,1856,801],{"class":520},[510,1858,1859],{"class":512,"line":786},[510,1860,1861],{"class":520},"},\n",[1863,1864,1865,1871,1879,1894,1900,1916],"field-group",{},[1866,1867,1870],"field",{"name":1868,"type":1869,":required":1550},"label","string | { en, de }","The text of the button.",[1866,1872,1875,1876,1878],{"name":1873,"type":1874},"run","({ user, cms }) => unknown","Runs on the server. It MAY return a text for the toast. A throw shows its message. ",[495,1877,1477],{}," belongs to the user who clicked, so their rules apply.",[1866,1880,1883,1884,1300,1887,1890,1891,1893],{"name":1881,"type":1882},"href","string","An ",[495,1885,1886],{},"http",[495,1888,1889],{},"https"," URL instead of ",[495,1892,1873],{},". The entry opens it in a new tab.",[1866,1895,1897,1898,699],{"name":1896,"type":1869},"confirm","A question the admin asks first. Cancel runs nothing. Only with ",[495,1899,1873],{},[1866,1901,1903,1906,1907,1909,1910,1912,1913,699],{"name":1449,"type":1902},"{ display, group, icon, order }",[495,1904,1905],{},"display"," is ",[495,1908,1391],{}," (the top bar, the default) or ",[495,1911,1361],{}," (the content menu). The other keys work as for ",[1069,1914,1915],{"href":1453},"navigation",[1866,1917,1920,1921,1925],{"name":1918,"type":1919},"access","Rule","Who sees and runs the action, like an ",[1069,1922,1924],{"href":1923},"\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control#rules","access rule",". Default: admins. API keys cannot run actions.",[1025,1927,1928,1934],{},[1035,1929,1930,1931,1933],{},"For a link, ",[495,1932,1918],{}," only hides the entry. The URL itself stays public.",[1035,1935,1936],{},"While an action runs, its button is disabled.",[488,1938,1940],{"id":1939},"related-resources","Related resources",[1025,1942,1943,1952,1964,1969],{},[1035,1944,1945,1948,1949,1951],{},[1069,1946,1947],{"href":224},"Custom fields",": the ",[495,1950,1129],{}," function in plain DOM, Vue and React.",[1035,1953,1954,1957,1958,1960,1961,699],{},[1069,1955,1956],{"href":1133},"Browser modules",": ",[495,1959,1136],{}," modules and ",[495,1962,1963],{},"clientRef()",[1035,1965,1966,1968],{},[1069,1967,219],{"href":220},": navigation, the admin bar and languages.",[1035,1970,1971,1974],{},[1069,1972,1973],{"href":160},"HTTP API and client",": read and write content from a page.",[1976,1977,1978],"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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}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}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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}",{"title":506,"searchDepth":547,"depth":547,"links":1980},[1981,1984,1985,1986,1987,1988],{"id":490,"depth":547,"text":491,"children":1982},[1983],{"id":1224,"depth":554,"text":1219},{"id":1318,"depth":547,"text":1319},{"id":1457,"depth":547,"text":1458},{"id":1523,"depth":547,"text":1524},{"id":1615,"depth":547,"text":1616},{"id":1939,"depth":547,"text":1940},"Add your own pages and one-click buttons to the admin.","md",null,{},{"title":227,"description":1989},"ptRfPf8J3P2WxDQ9GejXu6imZyJ83-n2C1rlfbuCMLM",[1996,1998],{"title":223,"path":224,"stem":225,"description":1997,"children":-1},"Your own input for a field, in any UI library.",{"title":231,"path":232,"stem":233,"description":1999,"children":-1},"Style your fields and pages, and what happens when you bring Vue or React into the admin.",1795884685885]