[{"data":1,"prerenderedAt":2925},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-customization-admin":478,"-docs-core-customization-admin-surround":2920},[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":219,"body":480,"description":2914,"extension":2915,"links":2916,"meta":2917,"navigation":1704,"path":220,"seo":2918,"stem":221,"__hash__":2919},"docs\u002Fdocs\u002F1.core\u002F6.customization\u002F1.admin.md",{"type":481,"value":482,"toc":2896},"minimark",[483,509,514,517,675,711,741,745,756,873,928,943,948,953,1046,1072,1076,1091,1112,1118,1286,1330,1334,1337,1414,1438,1442,1477,1624,1636,1640,1661,1930,2110,2138,2142,2149,2152,2192,2205,2209,2222,2426,2452,2456,2469,2519,2537,2561,2815,2819,2825,2855,2859,2893],[484,485,486,487,491,492,495,496,499,500,504,505,508],"p",{},"The admin is the app editors work in, at ",[488,489,490],"code",{},"\u002Fadmin"," by default. Everything you change about it sits in the ",[488,493,494],{},"admin"," object of ",[488,497,498],{},"defineCms()",". This page covers how it looks and where things are: branding, navigation, the admin bar on your site, languages and the path. To add your own inputs, see ",[501,502,503],"a",{"href":224},"Custom fields",". For your own pages and buttons, see ",[501,506,507],{"href":228},"Custom pages and actions",".",[510,511,513],"h2",{"id":512},"branding","Branding",[484,515,516],{},"The admin shows your logo in the top bar and on the login:",[518,519,525],"pre",{"className":520,"code":521,"filename":522,"language":523,"meta":524,"style":524},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineCms({\n  \u002F\u002F ...\n  site: { name: \"Acme\" },\n  admin: {\n    logo: { light: \"\u002Flogo-light.svg\", dark: \"\u002Flogo-dark.svg\" },\n    icon: \"\u002Ficon.svg\",\n  },\n});\n","tenon.config.ts","ts","",[488,526,527,551,558,589,600,639,657,663],{"__ignoreMap":524},[528,529,532,536,539,543,547],"span",{"class":530,"line":531},"line",1,[528,533,535],{"class":534},"s7zQu","export",[528,537,538],{"class":534}," default",[528,540,542],{"class":541},"s2Zo4"," defineCms",[528,544,546],{"class":545},"sTEyZ","(",[528,548,550],{"class":549},"sMK4o","{\n",[528,552,554],{"class":530,"line":553},2,[528,555,557],{"class":556},"sHwdD","  \u002F\u002F ...\n",[528,559,561,565,568,571,574,576,579,583,586],{"class":530,"line":560},3,[528,562,564],{"class":563},"swJcz","  site",[528,566,567],{"class":549},":",[528,569,570],{"class":549}," {",[528,572,573],{"class":563}," name",[528,575,567],{"class":549},[528,577,578],{"class":549}," \"",[528,580,582],{"class":581},"sfazB","Acme",[528,584,585],{"class":549},"\"",[528,587,588],{"class":549}," },\n",[528,590,592,595,597],{"class":530,"line":591},4,[528,593,594],{"class":563},"  admin",[528,596,567],{"class":549},[528,598,599],{"class":549}," {\n",[528,601,603,606,608,610,613,615,617,620,622,625,628,630,632,635,637],{"class":530,"line":602},5,[528,604,605],{"class":563},"    logo",[528,607,567],{"class":549},[528,609,570],{"class":549},[528,611,612],{"class":563}," light",[528,614,567],{"class":549},[528,616,578],{"class":549},[528,618,619],{"class":581},"\u002Flogo-light.svg",[528,621,585],{"class":549},[528,623,624],{"class":549},",",[528,626,627],{"class":563}," dark",[528,629,567],{"class":549},[528,631,578],{"class":549},[528,633,634],{"class":581},"\u002Flogo-dark.svg",[528,636,585],{"class":549},[528,638,588],{"class":549},[528,640,642,645,647,649,652,654],{"class":530,"line":641},6,[528,643,644],{"class":563},"    icon",[528,646,567],{"class":549},[528,648,578],{"class":549},[528,650,651],{"class":581},"\u002Ficon.svg",[528,653,585],{"class":549},[528,655,656],{"class":549},",\n",[528,658,660],{"class":530,"line":659},7,[528,661,662],{"class":549},"  },\n",[528,664,666,669,672],{"class":530,"line":665},8,[528,667,668],{"class":549},"}",[528,670,671],{"class":545},")",[528,673,674],{"class":549},";\n",[676,677,678,688,692],"field-group",{},[679,680,683,684,687],"field",{"name":681,"type":682},"logo","string | { light, dark }","The wide logo in the top bar and on the login. One image per place works too: ",[488,685,686],{},"{ header: \"\u002Flogo-wide.svg\", login: \"\u002Flogo.svg\" }",". A place without a logo shows the icon and the name.",[679,689,691],{"name":690,"type":682},"icon","The square icon, next to the name when there is no logo.",[679,693,695,696,698,699,702,703,706,707,710],{"name":694,"type":682},"favicon","The favicon of the admin. Default: ",[488,697,690],{},", then the ",[488,700,701],{},"favicon.svg",", ",[488,704,705],{},".ico"," or ",[488,708,709],{},".png"," in your public folder, then the Tenon icon.",[712,713,714,725,731],"ul",{},[715,716,717,718,721,722,724],"li",{},"The name is ",[488,719,720],{},"site.name",", not an ",[488,723,494],{}," option. The admin, the admin bar, emails and passkeys show it.",[715,726,727,730],{},[488,728,729],{},"{ light, dark }"," follows the admin's theme.",[715,732,733,734,737,738,508],{},"The admin links the files and does not bundle them. Put them in your public folder, like ",[488,735,736],{},"public\u002Flogo.svg",", and use the URL ",[488,739,740],{},"\u002Flogo.svg",[510,742,744],{"id":743},"navigation","Navigation",[484,746,747,748,751,752,755],{},"The content menu lists every collection, global, the media library and your own ",[501,749,750],{"href":228},"pages",". ",[488,753,754],{},"nav"," decides where an entry shows:",[518,757,760],{"className":520,"code":758,"filename":759,"language":523,"meta":524,"style":524},"export const posts = defineCollection({\n  label: \"Posts\",\n  nav: { group: \"Blog\", icon: \"newspaper\", order: 1 },\n  fields: {\n    \u002F\u002F ...\n  },\n});\n","cms\u002Fcollections\u002Fposts.ts",[488,761,762,783,799,847,856,861,865],{"__ignoreMap":524},[528,763,764,766,770,773,776,779,781],{"class":530,"line":531},[528,765,535],{"class":534},[528,767,769],{"class":768},"spNyl"," const",[528,771,772],{"class":545}," posts ",[528,774,775],{"class":549},"=",[528,777,778],{"class":541}," defineCollection",[528,780,546],{"class":545},[528,782,550],{"class":549},[528,784,785,788,790,792,795,797],{"class":530,"line":553},[528,786,787],{"class":563},"  label",[528,789,567],{"class":549},[528,791,578],{"class":549},[528,793,794],{"class":581},"Posts",[528,796,585],{"class":549},[528,798,656],{"class":549},[528,800,801,804,806,808,811,813,815,818,820,822,825,827,829,832,834,836,839,841,845],{"class":530,"line":560},[528,802,803],{"class":563},"  nav",[528,805,567],{"class":549},[528,807,570],{"class":549},[528,809,810],{"class":563}," group",[528,812,567],{"class":549},[528,814,578],{"class":549},[528,816,817],{"class":581},"Blog",[528,819,585],{"class":549},[528,821,624],{"class":549},[528,823,824],{"class":563}," icon",[528,826,567],{"class":549},[528,828,578],{"class":549},[528,830,831],{"class":581},"newspaper",[528,833,585],{"class":549},[528,835,624],{"class":549},[528,837,838],{"class":563}," order",[528,840,567],{"class":549},[528,842,844],{"class":843},"sbssI"," 1",[528,846,588],{"class":549},[528,848,849,852,854],{"class":530,"line":591},[528,850,851],{"class":563},"  fields",[528,853,567],{"class":549},[528,855,599],{"class":549},[528,857,858],{"class":530,"line":602},[528,859,860],{"class":556},"    \u002F\u002F ...\n",[528,862,863],{"class":530,"line":641},[528,864,662],{"class":549},[528,866,867,869,871],{"class":530,"line":659},[528,868,668],{"class":549},[528,870,671],{"class":545},[528,872,674],{"class":549},[676,874,875,895,909,923],{},[679,876,879,882,883,886,887,890,891,894],{"name":877,"type":878},"display","\"content\" | \"settings\" | \"main\" | \"none\"",[488,880,881],{},"content"," is the content menu, the default. ",[488,884,885],{},"settings"," is a card on the Settings page. ",[488,888,889],{},"main"," is the top bar, next to Content and Visual Editor. ",[488,892,893],{},"none"," hides the entry.",[679,896,899,900,904,905,908],{"name":897,"type":898},"group","string | { en, de }","The section in the menu or on the Settings page. Default: ",[901,902,903],"strong",{},"Content"," in the menu, ",[901,906,907],{},"Site"," on the Settings page.",[679,910,912,913,919,920,922],{"name":690,"type":911},"string","A ",[501,914,918],{"href":915,"rel":916},"https:\u002F\u002Flucide.dev\u002Ficons",[917],"nofollow","Lucide"," icon name, like ",[488,921,831],{},". A typo is a type error.",[679,924,927],{"name":925,"type":926},"order","number","The position, lowest first. Collections default to 10, media to 15, globals to 20 and pages to 30.",[712,929,930,933],{},[715,931,932],{},"Equal orders keep the order you define them in. Sections show in the order of their first entry.",[715,934,935,936,939,940,508],{},"To move the media library, set ",[488,937,938],{},"admin.media",": ",[488,941,942],{},"{ label: \"Files\", nav: { group: \"Assets\", icon: \"images\" } }",[944,945,947],"h3",{"id":946},"the-settings-page","The Settings page",[484,949,950,951,567],{},"Globals that editors rarely open belong on the Settings page. Each one is a card there, grouped by ",[488,952,897],{},[518,954,957],{"className":520,"code":955,"filename":956,"language":523,"meta":524,"style":524},"export const footer = defineGlobal({\n  label: \"Footer\",\n  nav: { display: \"settings\", order: 3 },\n  fields: {\n    \u002F\u002F ...\n  },\n});\n","cms\u002Fglobals\u002Ffooter.ts",[488,958,959,977,992,1022,1030,1034,1038],{"__ignoreMap":524},[528,960,961,963,965,968,970,973,975],{"class":530,"line":531},[528,962,535],{"class":534},[528,964,769],{"class":768},[528,966,967],{"class":545}," footer ",[528,969,775],{"class":549},[528,971,972],{"class":541}," defineGlobal",[528,974,546],{"class":545},[528,976,550],{"class":549},[528,978,979,981,983,985,988,990],{"class":530,"line":553},[528,980,787],{"class":563},[528,982,567],{"class":549},[528,984,578],{"class":549},[528,986,987],{"class":581},"Footer",[528,989,585],{"class":549},[528,991,656],{"class":549},[528,993,994,996,998,1000,1003,1005,1007,1009,1011,1013,1015,1017,1020],{"class":530,"line":560},[528,995,803],{"class":563},[528,997,567],{"class":549},[528,999,570],{"class":549},[528,1001,1002],{"class":563}," display",[528,1004,567],{"class":549},[528,1006,578],{"class":549},[528,1008,885],{"class":581},[528,1010,585],{"class":549},[528,1012,624],{"class":549},[528,1014,838],{"class":563},[528,1016,567],{"class":549},[528,1018,1019],{"class":843}," 3",[528,1021,588],{"class":549},[528,1023,1024,1026,1028],{"class":530,"line":591},[528,1025,851],{"class":563},[528,1027,567],{"class":549},[528,1029,599],{"class":549},[528,1031,1032],{"class":530,"line":602},[528,1033,860],{"class":556},[528,1035,1036],{"class":530,"line":641},[528,1037,662],{"class":549},[528,1039,1040,1042,1044],{"class":530,"line":659},[528,1041,668],{"class":549},[528,1043,671],{"class":545},[528,1045,674],{"class":549},[484,1047,1048,1049,1051,1052,1055,1056,1059,1060,1063,1064,1067,1068,508],{},"The content menu shows ",[901,1050,134],{}," under ",[901,1053,1054],{},"Manage"," as soon as one entry has ",[488,1057,1058],{},"display: \"settings\"",". The built-in ",[488,1061,1062],{},"general"," and ",[488,1065,1066],{},"seo"," globals sit there too. See ",[501,1069,1071],{"href":1070},"\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo#site-settings","Site settings",[510,1073,1075],{"id":1074},"admin-bar","Admin bar",[484,1077,1078,1079,1082,1083,1086,1087,1090],{},"The admin bar is a small bar on your site. Signed-in editors see it on every page, with your logo and name, ",[901,1080,1081],{},"Edit",", the ",[901,1084,1085],{},"Drafts"," \u002F ",[901,1088,1089],{},"Published"," switch and a button to hide it. Visitors never load it.",[712,1092,1093,1098,1101],{},[715,1094,1095,1097],{},[901,1096,1081],{}," opens the current page in the visual editor.",[715,1099,1100],{},"The bar hides while you scroll down. Your page's CSS does not reach it.",[715,1102,1103,1104,1107,1108,1111],{},"In a preview tab, it shows ",[901,1105,1106],{},"Back to visual editor"," and an ",[901,1109,1110],{},"Edit preview"," switch instead.",[484,1113,1114,1117],{},[488,1115,1116],{},"admin.adminBar"," sets where it sits and what it shows:",[518,1119,1121],{"className":520,"code":1120,"filename":522,"language":523,"meta":524,"style":524},"export default defineCms({\n  \u002F\u002F ...\n  admin: {\n    adminBar: {\n      position: \"bottom-right\",\n      items: {\n        analytics: {\n          label: \"Analytics\",\n          icon: \"chart-bar\",\n          href: \"https:\u002F\u002Fplausible.io\u002Fexample.com\",\n        },\n        perspective: false,\n      },\n    },\n  },\n});\n",[488,1122,1123,1135,1139,1147,1156,1172,1181,1190,1206,1223,1240,1246,1260,1266,1272,1277],{"__ignoreMap":524},[528,1124,1125,1127,1129,1131,1133],{"class":530,"line":531},[528,1126,535],{"class":534},[528,1128,538],{"class":534},[528,1130,542],{"class":541},[528,1132,546],{"class":545},[528,1134,550],{"class":549},[528,1136,1137],{"class":530,"line":553},[528,1138,557],{"class":556},[528,1140,1141,1143,1145],{"class":530,"line":560},[528,1142,594],{"class":563},[528,1144,567],{"class":549},[528,1146,599],{"class":549},[528,1148,1149,1152,1154],{"class":530,"line":591},[528,1150,1151],{"class":563},"    adminBar",[528,1153,567],{"class":549},[528,1155,599],{"class":549},[528,1157,1158,1161,1163,1165,1168,1170],{"class":530,"line":602},[528,1159,1160],{"class":563},"      position",[528,1162,567],{"class":549},[528,1164,578],{"class":549},[528,1166,1167],{"class":581},"bottom-right",[528,1169,585],{"class":549},[528,1171,656],{"class":549},[528,1173,1174,1177,1179],{"class":530,"line":641},[528,1175,1176],{"class":563},"      items",[528,1178,567],{"class":549},[528,1180,599],{"class":549},[528,1182,1183,1186,1188],{"class":530,"line":659},[528,1184,1185],{"class":563},"        analytics",[528,1187,567],{"class":549},[528,1189,599],{"class":549},[528,1191,1192,1195,1197,1199,1202,1204],{"class":530,"line":665},[528,1193,1194],{"class":563},"          label",[528,1196,567],{"class":549},[528,1198,578],{"class":549},[528,1200,1201],{"class":581},"Analytics",[528,1203,585],{"class":549},[528,1205,656],{"class":549},[528,1207,1209,1212,1214,1216,1219,1221],{"class":530,"line":1208},9,[528,1210,1211],{"class":563},"          icon",[528,1213,567],{"class":549},[528,1215,578],{"class":549},[528,1217,1218],{"class":581},"chart-bar",[528,1220,585],{"class":549},[528,1222,656],{"class":549},[528,1224,1226,1229,1231,1233,1236,1238],{"class":530,"line":1225},10,[528,1227,1228],{"class":563},"          href",[528,1230,567],{"class":549},[528,1232,578],{"class":549},[528,1234,1235],{"class":581},"https:\u002F\u002Fplausible.io\u002Fexample.com",[528,1237,585],{"class":549},[528,1239,656],{"class":549},[528,1241,1243],{"class":530,"line":1242},11,[528,1244,1245],{"class":549},"        },\n",[528,1247,1249,1252,1254,1258],{"class":530,"line":1248},12,[528,1250,1251],{"class":563},"        perspective",[528,1253,567],{"class":549},[528,1255,1257],{"class":1256},"sfNiH"," false",[528,1259,656],{"class":549},[528,1261,1263],{"class":530,"line":1262},13,[528,1264,1265],{"class":549},"      },\n",[528,1267,1269],{"class":530,"line":1268},14,[528,1270,1271],{"class":549},"    },\n",[528,1273,1275],{"class":530,"line":1274},15,[528,1276,662],{"class":549},[528,1278,1280,1282,1284],{"class":530,"line":1279},16,[528,1281,668],{"class":549},[528,1283,671],{"class":545},[528,1285,674],{"class":549},[712,1287,1288,1318,1324],{},[715,1289,1290,1293,1294,702,1297,702,1300,702,1303,702,1306,702,1309,702,1312,1315,1316,508],{},[488,1291,1292],{},"position"," is one of eight places: ",[488,1295,1296],{},"top-left",[488,1298,1299],{},"top-center",[488,1301,1302],{},"top-right",[488,1304,1305],{},"center-left",[488,1307,1308],{},"center-right",[488,1310,1311],{},"bottom-left",[488,1313,1314],{},"bottom-center"," (the default) and ",[488,1317,1167],{},[715,1319,1320,1323],{},[488,1321,1322],{},"false"," for an item removes it. That works for the built-in items too.",[715,1325,1326,1329],{},[488,1327,1328],{},"adminBar: false"," turns the bar off.",[944,1331,1333],{"id":1332},"items","Items",[484,1335,1336],{},"The key of an item is its id. An item with the id of an existing one replaces it. Each item is one of these:",[1338,1339,1340,1353],"table",{},[1341,1342,1343],"thead",{},[1344,1345,1346,1350],"tr",{},[1347,1348,1349],"th",{},"Item",[1347,1351,1352],{},"Set",[1354,1355,1356,1375,1386,1401],"tbody",{},[1344,1357,1358,1361],{},[1359,1360,80],"td",{},[1359,1362,1363,1366,1367,1370,1371,1374],{},[488,1364,1365],{},"href",": a path like ",[488,1368,1369],{},"\u002Fabout",", or an ",[488,1372,1373],{},"http(s)"," URL",[1344,1376,1377,1380],{},[1359,1378,1379],{},"Dropdown",[1359,1381,1382,1385],{},[488,1383,1384],{},"children",": items by id, one level deep",[1344,1387,1388,1391],{},[1359,1389,1390],{},"Button",[1359,1392,1393,939,1396,1400],{},[488,1394,1395],{},"onClick",[501,1397,1399],{"href":1398},"#buttons-and-controls","browser code"," that runs on click",[1344,1402,1403,1406],{},[1359,1404,1405],{},"Control",[1359,1407,1408,939,1411,1413],{},[488,1409,1410],{},"mount",[501,1412,1399],{"href":1398}," that renders the item",[484,1415,1416,1417,1420,1421,1107,1423,1425,1426,1429,1430,1433,1434,1437],{},"Every item has a ",[488,1418,1419],{},"label",", and can have an ",[488,1422,690],{},[488,1424,925],{},". The built-in items are ",[488,1427,1428],{},"dashboard"," (order 10), ",[488,1431,1432],{},"edit"," (20) and ",[488,1435,1436],{},"perspective"," (30). Items without an order come last.",[944,1439,1441],{"id":1440},"items-that-depend-on-the-page","Items that depend on the page",[484,1443,1444,1447,1448,1451,1452,1455,1456,1459,1460,1463,1464,702,1466,702,1468,706,1470,1472,1473,1476],{},[488,1445,1446],{},"load"," runs on the server for every page the bar shows on. It gets the ",[488,1449,1450],{},"user",", their ",[488,1453,1454],{},"cms",", the admin ",[488,1457,1458],{},"locale"," and the page ",[488,1461,1462],{},"url",". For a link or dropdown, it returns new values for ",[488,1465,1419],{},[488,1467,690],{},[488,1469,1365],{},[488,1471,1384],{},", or ",[488,1474,1475],{},"null"," to hide the item:",[518,1478,1480],{"className":520,"code":1479,"language":523,"meta":524,"style":524},"analytics: {\n  label: \"Analytics\",\n  href: \"https:\u002F\u002Fplausible.io\u002Fexample.com\",\n  load: ({ url, user }) =>\n    user.role === \"admin\"\n      ? { href: `https:\u002F\u002Fplausible.io\u002Fexample.com?page=${encodeURIComponent(new URL(url).pathname)}` }\n      : null,\n},\n",[488,1481,1482,1492,1506,1521,1546,1566,1611,1619],{"__ignoreMap":524},[528,1483,1484,1488,1490],{"class":530,"line":531},[528,1485,1487],{"class":1486},"sBMFI","analytics",[528,1489,567],{"class":549},[528,1491,599],{"class":549},[528,1493,1494,1496,1498,1500,1502,1504],{"class":530,"line":553},[528,1495,787],{"class":1486},[528,1497,567],{"class":549},[528,1499,578],{"class":549},[528,1501,1201],{"class":581},[528,1503,585],{"class":549},[528,1505,656],{"class":549},[528,1507,1508,1511,1513,1515,1517,1519],{"class":530,"line":560},[528,1509,1510],{"class":1486},"  href",[528,1512,567],{"class":549},[528,1514,578],{"class":549},[528,1516,1235],{"class":581},[528,1518,585],{"class":549},[528,1520,656],{"class":549},[528,1522,1523,1526,1528,1531,1535,1537,1540,1543],{"class":530,"line":591},[528,1524,1525],{"class":1486},"  load",[528,1527,567],{"class":549},[528,1529,1530],{"class":549}," ({",[528,1532,1534],{"class":1533},"sHdIc"," url",[528,1536,624],{"class":549},[528,1538,1539],{"class":1533}," user",[528,1541,1542],{"class":549}," })",[528,1544,1545],{"class":768}," =>\n",[528,1547,1548,1551,1553,1556,1559,1561,1563],{"class":530,"line":602},[528,1549,1550],{"class":545},"    user",[528,1552,508],{"class":549},[528,1554,1555],{"class":545},"role",[528,1557,1558],{"class":549}," ===",[528,1560,578],{"class":549},[528,1562,494],{"class":581},[528,1564,1565],{"class":549},"\"\n",[528,1567,1568,1571,1573,1576,1578,1581,1584,1587,1590,1592,1595,1597,1600,1602,1605,1608],{"class":530,"line":641},[528,1569,1570],{"class":549},"      ?",[528,1572,570],{"class":549},[528,1574,1575],{"class":563}," href",[528,1577,567],{"class":549},[528,1579,1580],{"class":549}," `",[528,1582,1583],{"class":581},"https:\u002F\u002Fplausible.io\u002Fexample.com?page=",[528,1585,1586],{"class":549},"${",[528,1588,1589],{"class":541},"encodeURIComponent",[528,1591,546],{"class":545},[528,1593,1594],{"class":549},"new",[528,1596,1374],{"class":541},[528,1598,1599],{"class":545},"(url)",[528,1601,508],{"class":549},[528,1603,1604],{"class":545},"pathname)",[528,1606,1607],{"class":549},"}`",[528,1609,1610],{"class":549}," }\n",[528,1612,1613,1616],{"class":530,"line":659},[528,1614,1615],{"class":549},"      :",[528,1617,1618],{"class":549}," null,\n",[528,1620,1621],{"class":530,"line":665},[528,1622,1623],{"class":549},"},\n",[712,1625,1626,1631],{},[715,1627,1628,1630],{},[488,1629,1462],{}," comes from the browser. Never trust it, and never fetch it.",[715,1632,912,1633,1635],{},[488,1634,1446],{}," that throws is logged, and its item is left out. The rest of the bar stays.",[944,1637,1639],{"id":1638},"buttons-and-controls","Buttons and controls",[484,1641,1642,1063,1644,1646,1647,1654,1655,1657,1658,567],{},[488,1643,1395],{},[488,1645,1410],{}," are browser code, from a ",[501,1648,1650,1653],{"href":1649},"\u002Fdocs\u002Fcore\u002Fcustomization#browser-modules",[488,1651,1652],{},".client.ts"," module",". For a button or control, ",[488,1656,1446],{}," returns any JSON, and the code gets it as ",[488,1659,1660],{},"ctx.data",[518,1662,1665],{"className":520,"code":1663,"filename":1664,"language":523,"meta":524,"style":524},"import type { AdminBarItemContext, Mount } from \"tenoncms\u002Fadmin\";\n\nexport const copyUrl = () => navigator.clipboard.writeText(location.href);\n\nexport const mountGreeting: Mount\u003CAdminBarItemContext\u003Cstring>> = (el, ctx) => {\n  const render = (next: AdminBarItemContext\u003Cstring>) => (el.textContent = next.data);\n  el.style.cssText = \"font: 500 12px\u002F1 sans-serif; padding: 4px 8px\";\n  render(ctx);\n  return { update: render, unmount: () => el.replaceChildren() };\n};\n","src\u002Fadmin\u002Fbar.client.ts",[488,1666,1667,1700,1706,1746,1750,1796,1847,1873,1887,1926],{"__ignoreMap":524},[528,1668,1669,1672,1675,1677,1680,1682,1685,1688,1691,1693,1696,1698],{"class":530,"line":531},[528,1670,1671],{"class":534},"import",[528,1673,1674],{"class":534}," type",[528,1676,570],{"class":549},[528,1678,1679],{"class":545}," AdminBarItemContext",[528,1681,624],{"class":549},[528,1683,1684],{"class":545}," Mount",[528,1686,1687],{"class":549}," }",[528,1689,1690],{"class":534}," from",[528,1692,578],{"class":549},[528,1694,1695],{"class":581},"tenoncms\u002Fadmin",[528,1697,585],{"class":549},[528,1699,674],{"class":549},[528,1701,1702],{"class":530,"line":553},[528,1703,1705],{"emptyLinePlaceholder":1704},true,"\n",[528,1707,1708,1710,1712,1715,1717,1720,1723,1726,1728,1731,1733,1736,1739,1741,1744],{"class":530,"line":560},[528,1709,535],{"class":534},[528,1711,769],{"class":768},[528,1713,1714],{"class":545}," copyUrl ",[528,1716,775],{"class":549},[528,1718,1719],{"class":549}," ()",[528,1721,1722],{"class":768}," =>",[528,1724,1725],{"class":545}," navigator",[528,1727,508],{"class":549},[528,1729,1730],{"class":545},"clipboard",[528,1732,508],{"class":549},[528,1734,1735],{"class":541},"writeText",[528,1737,1738],{"class":545},"(location",[528,1740,508],{"class":549},[528,1742,1743],{"class":545},"href)",[528,1745,674],{"class":549},[528,1747,1748],{"class":530,"line":591},[528,1749,1705],{"emptyLinePlaceholder":1704},[528,1751,1752,1754,1756,1759,1761,1763,1766,1769,1771,1773,1776,1779,1782,1785,1787,1790,1792,1794],{"class":530,"line":602},[528,1753,535],{"class":534},[528,1755,769],{"class":768},[528,1757,1758],{"class":545}," mountGreeting",[528,1760,567],{"class":549},[528,1762,1684],{"class":1486},[528,1764,1765],{"class":549},"\u003C",[528,1767,1768],{"class":1486},"AdminBarItemContext",[528,1770,1765],{"class":549},[528,1772,911],{"class":1486},[528,1774,1775],{"class":549},">>",[528,1777,1778],{"class":549}," =",[528,1780,1781],{"class":549}," (",[528,1783,1784],{"class":1533},"el",[528,1786,624],{"class":549},[528,1788,1789],{"class":1533}," ctx",[528,1791,671],{"class":549},[528,1793,1722],{"class":768},[528,1795,599],{"class":549},[528,1797,1798,1801,1804,1806,1808,1811,1813,1815,1817,1819,1822,1824,1826,1828,1830,1833,1835,1838,1840,1843,1845],{"class":530,"line":641},[528,1799,1800],{"class":768},"  const",[528,1802,1803],{"class":545}," render",[528,1805,1778],{"class":549},[528,1807,1781],{"class":549},[528,1809,1810],{"class":1533},"next",[528,1812,567],{"class":549},[528,1814,1679],{"class":1486},[528,1816,1765],{"class":549},[528,1818,911],{"class":1486},[528,1820,1821],{"class":549},">)",[528,1823,1722],{"class":768},[528,1825,1781],{"class":563},[528,1827,1784],{"class":545},[528,1829,508],{"class":549},[528,1831,1832],{"class":545},"textContent",[528,1834,1778],{"class":549},[528,1836,1837],{"class":545}," next",[528,1839,508],{"class":549},[528,1841,1842],{"class":545},"data",[528,1844,671],{"class":563},[528,1846,674],{"class":549},[528,1848,1849,1852,1854,1857,1859,1862,1864,1866,1869,1871],{"class":530,"line":659},[528,1850,1851],{"class":545},"  el",[528,1853,508],{"class":549},[528,1855,1856],{"class":545},"style",[528,1858,508],{"class":549},[528,1860,1861],{"class":545},"cssText",[528,1863,1778],{"class":549},[528,1865,578],{"class":549},[528,1867,1868],{"class":581},"font: 500 12px\u002F1 sans-serif; padding: 4px 8px",[528,1870,585],{"class":549},[528,1872,674],{"class":549},[528,1874,1875,1878,1880,1883,1885],{"class":530,"line":665},[528,1876,1877],{"class":541},"  render",[528,1879,546],{"class":563},[528,1881,1882],{"class":545},"ctx",[528,1884,671],{"class":563},[528,1886,674],{"class":549},[528,1888,1889,1892,1894,1897,1899,1901,1903,1906,1908,1910,1912,1915,1917,1920,1923],{"class":530,"line":1208},[528,1890,1891],{"class":534},"  return",[528,1893,570],{"class":549},[528,1895,1896],{"class":563}," update",[528,1898,567],{"class":549},[528,1900,1803],{"class":545},[528,1902,624],{"class":549},[528,1904,1905],{"class":541}," unmount",[528,1907,567],{"class":549},[528,1909,1719],{"class":549},[528,1911,1722],{"class":768},[528,1913,1914],{"class":545}," el",[528,1916,508],{"class":549},[528,1918,1919],{"class":541},"replaceChildren",[528,1921,1922],{"class":563},"() ",[528,1924,1925],{"class":549},"};\n",[528,1927,1928],{"class":530,"line":1225},[528,1929,1925],{"class":549},[518,1931,1933],{"className":520,"code":1932,"filename":522,"language":523,"meta":524,"style":524},"import { copyUrl, mountGreeting } from \".\u002Fsrc\u002Fadmin\u002Fbar.client\";\n\nadmin: {\n  adminBar: {\n    items: {\n      copy: { label: \"Copy URL\", icon: \"link\", onClick: copyUrl },\n      greeting: { label: \"Greeting\", mount: mountGreeting, load: ({ user }) => `Hi ${user.name}` },\n    },\n  },\n},\n",[488,1934,1935,1961,1965,1973,1982,1991,2036,2098,2102,2106],{"__ignoreMap":524},[528,1936,1937,1939,1941,1944,1946,1948,1950,1952,1954,1957,1959],{"class":530,"line":531},[528,1938,1671],{"class":534},[528,1940,570],{"class":549},[528,1942,1943],{"class":545}," copyUrl",[528,1945,624],{"class":549},[528,1947,1758],{"class":545},[528,1949,1687],{"class":549},[528,1951,1690],{"class":534},[528,1953,578],{"class":549},[528,1955,1956],{"class":581},".\u002Fsrc\u002Fadmin\u002Fbar.client",[528,1958,585],{"class":549},[528,1960,674],{"class":549},[528,1962,1963],{"class":530,"line":553},[528,1964,1705],{"emptyLinePlaceholder":1704},[528,1966,1967,1969,1971],{"class":530,"line":560},[528,1968,494],{"class":1486},[528,1970,567],{"class":549},[528,1972,599],{"class":549},[528,1974,1975,1978,1980],{"class":530,"line":591},[528,1976,1977],{"class":1486},"  adminBar",[528,1979,567],{"class":549},[528,1981,599],{"class":549},[528,1983,1984,1987,1989],{"class":530,"line":602},[528,1985,1986],{"class":1486},"    items",[528,1988,567],{"class":549},[528,1990,599],{"class":549},[528,1992,1993,1996,1998,2000,2003,2005,2007,2010,2012,2014,2016,2018,2020,2023,2025,2027,2030,2032,2034],{"class":530,"line":641},[528,1994,1995],{"class":1486},"      copy",[528,1997,567],{"class":549},[528,1999,570],{"class":549},[528,2001,2002],{"class":1486}," label",[528,2004,567],{"class":549},[528,2006,578],{"class":549},[528,2008,2009],{"class":581},"Copy URL",[528,2011,585],{"class":549},[528,2013,624],{"class":549},[528,2015,824],{"class":1486},[528,2017,567],{"class":549},[528,2019,578],{"class":549},[528,2021,2022],{"class":581},"link",[528,2024,585],{"class":549},[528,2026,624],{"class":549},[528,2028,2029],{"class":1486}," onClick",[528,2031,567],{"class":549},[528,2033,1943],{"class":545},[528,2035,588],{"class":549},[528,2037,2038,2041,2043,2045,2047,2049,2051,2054,2056,2058,2061,2063,2065,2067,2070,2072,2074,2076,2078,2080,2082,2085,2087,2089,2091,2094,2096],{"class":530,"line":659},[528,2039,2040],{"class":1486},"      greeting",[528,2042,567],{"class":549},[528,2044,570],{"class":549},[528,2046,2002],{"class":1486},[528,2048,567],{"class":549},[528,2050,578],{"class":549},[528,2052,2053],{"class":581},"Greeting",[528,2055,585],{"class":549},[528,2057,624],{"class":549},[528,2059,2060],{"class":1486}," mount",[528,2062,567],{"class":549},[528,2064,1758],{"class":545},[528,2066,624],{"class":549},[528,2068,2069],{"class":1486}," load",[528,2071,567],{"class":549},[528,2073,1530],{"class":549},[528,2075,1539],{"class":1533},[528,2077,1542],{"class":549},[528,2079,1722],{"class":768},[528,2081,1580],{"class":549},[528,2083,2084],{"class":581},"Hi ",[528,2086,1586],{"class":549},[528,2088,1450],{"class":545},[528,2090,508],{"class":549},[528,2092,2093],{"class":545},"name",[528,2095,1607],{"class":549},[528,2097,588],{"class":549},[528,2099,2100],{"class":530,"line":665},[528,2101,1271],{"class":549},[528,2103,2104],{"class":530,"line":1208},[528,2105,662],{"class":549},[528,2107,2108],{"class":530,"line":1225},[528,2109,1623],{"class":549},[712,2111,2112,2128,2135],{},[715,2113,2114,2115,1063,2117,2120,2121,2124,2125,2127],{},"The context also has the bar's state, like ",[488,2116,1436],{},[488,2118,2119],{},"setPerspective()",", and ",[488,2122,2123],{},"tenon.reload()"," to run ",[488,2126,1446],{}," again.",[715,2129,2130,2131,508],{},"The bar sits in a shadow root, so your CSS does not reach it. See ",[501,2132,2134],{"href":2133},"\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries#style-admin-bar-items","Style admin bar items",[715,2136,2137],{},"The bar loads on every page of your site. Its modules MUST NOT import CSS, so keep bar code in its own module.",[510,2139,2141],{"id":2140},"languages","Languages",[484,2143,2144,2145,2148],{},"The admin is localized (only English and German for now). Each user picks their preferred language under ",[901,2146,2147],{},"Interface language"," in the user menu. Without a choice, the admin follows the browser.",[484,2150,2151],{},"Every label and description you write takes one string, or one per language:",[518,2153,2155],{"className":520,"code":2154,"language":523,"meta":524,"style":524},"label: { en: \"Posts\", de: \"Beiträge\" },\n",[488,2156,2157],{"__ignoreMap":524},[528,2158,2159,2161,2163,2165,2168,2170,2172,2174,2176,2178,2181,2183,2185,2188,2190],{"class":530,"line":531},[528,2160,1419],{"class":1486},[528,2162,567],{"class":549},[528,2164,570],{"class":549},[528,2166,2167],{"class":1486}," en",[528,2169,567],{"class":549},[528,2171,578],{"class":549},[528,2173,794],{"class":581},[528,2175,585],{"class":549},[528,2177,624],{"class":549},[528,2179,2180],{"class":1486}," de",[528,2182,567],{"class":549},[528,2184,578],{"class":549},[528,2186,2187],{"class":581},"Beiträge",[528,2189,585],{"class":549},[528,2191,588],{"class":549},[712,2193,2194,2197,2202],{},[715,2195,2196],{},"A missing language shows English, then the first entry.",[715,2198,2199,2200,508],{},"The admin language is separate from the languages of your content. See ",[501,2201,167],{"href":168},[715,2203,2204],{},"Validation messages from the server stay English.",[944,2206,2208],{"id":2207},"texts-in-your-own-code","Texts in your own code",[484,2210,2211,2212,751,2215,2218,2219,2221],{},"Fields, pages and bar items get the admin language as ",[488,2213,2214],{},"ctx.tenon.locale",[488,2216,2217],{},"translator()"," from ",[488,2220,1695],{}," reads your own message files:",[518,2223,2226],{"className":520,"code":2224,"filename":2225,"language":523,"meta":524,"style":524},"import { translator, type Mount, type PageContext } from \"tenoncms\u002Fadmin\";\nimport de from \".\u002Flocales\u002Fde.json\";\nimport en from \".\u002Flocales\u002Fen.json\";\n\nexport const mountStats: Mount\u003CPageContext> = (el, ctx) => {\n  const t = translator({ en, de }, ctx.tenon.locale);\n  el.textContent = t(\"stats.count\", { n: 3 });\n  \u002F\u002F ...\n};\n","src\u002Fadmin\u002Fstats.client.ts",[488,2227,2228,2262,2281,2299,2303,2340,2380,2418,2422],{"__ignoreMap":524},[528,2229,2230,2232,2234,2237,2239,2241,2243,2245,2247,2250,2252,2254,2256,2258,2260],{"class":530,"line":531},[528,2231,1671],{"class":534},[528,2233,570],{"class":549},[528,2235,2236],{"class":545}," translator",[528,2238,624],{"class":549},[528,2240,1674],{"class":534},[528,2242,1684],{"class":545},[528,2244,624],{"class":549},[528,2246,1674],{"class":534},[528,2248,2249],{"class":545}," PageContext",[528,2251,1687],{"class":549},[528,2253,1690],{"class":534},[528,2255,578],{"class":549},[528,2257,1695],{"class":581},[528,2259,585],{"class":549},[528,2261,674],{"class":549},[528,2263,2264,2266,2269,2272,2274,2277,2279],{"class":530,"line":553},[528,2265,1671],{"class":534},[528,2267,2268],{"class":545}," de ",[528,2270,2271],{"class":534},"from",[528,2273,578],{"class":549},[528,2275,2276],{"class":581},".\u002Flocales\u002Fde.json",[528,2278,585],{"class":549},[528,2280,674],{"class":549},[528,2282,2283,2285,2288,2290,2292,2295,2297],{"class":530,"line":560},[528,2284,1671],{"class":534},[528,2286,2287],{"class":545}," en ",[528,2289,2271],{"class":534},[528,2291,578],{"class":549},[528,2293,2294],{"class":581},".\u002Flocales\u002Fen.json",[528,2296,585],{"class":549},[528,2298,674],{"class":549},[528,2300,2301],{"class":530,"line":591},[528,2302,1705],{"emptyLinePlaceholder":1704},[528,2304,2305,2307,2309,2312,2314,2316,2318,2321,2324,2326,2328,2330,2332,2334,2336,2338],{"class":530,"line":602},[528,2306,535],{"class":534},[528,2308,769],{"class":768},[528,2310,2311],{"class":545}," mountStats",[528,2313,567],{"class":549},[528,2315,1684],{"class":1486},[528,2317,1765],{"class":549},[528,2319,2320],{"class":1486},"PageContext",[528,2322,2323],{"class":549},">",[528,2325,1778],{"class":549},[528,2327,1781],{"class":549},[528,2329,1784],{"class":1533},[528,2331,624],{"class":549},[528,2333,1789],{"class":1533},[528,2335,671],{"class":549},[528,2337,1722],{"class":768},[528,2339,599],{"class":549},[528,2341,2342,2344,2347,2349,2351,2353,2356,2358,2360,2362,2365,2367,2369,2372,2374,2376,2378],{"class":530,"line":641},[528,2343,1800],{"class":768},[528,2345,2346],{"class":545}," t",[528,2348,1778],{"class":549},[528,2350,2236],{"class":541},[528,2352,546],{"class":563},[528,2354,2355],{"class":549},"{",[528,2357,2167],{"class":545},[528,2359,624],{"class":549},[528,2361,2180],{"class":545},[528,2363,2364],{"class":549}," },",[528,2366,1789],{"class":545},[528,2368,508],{"class":549},[528,2370,2371],{"class":545},"tenon",[528,2373,508],{"class":549},[528,2375,1458],{"class":545},[528,2377,671],{"class":563},[528,2379,674],{"class":549},[528,2381,2382,2384,2386,2388,2390,2392,2394,2396,2399,2401,2403,2405,2408,2410,2412,2414,2416],{"class":530,"line":659},[528,2383,1851],{"class":545},[528,2385,508],{"class":549},[528,2387,1832],{"class":545},[528,2389,1778],{"class":549},[528,2391,2346],{"class":541},[528,2393,546],{"class":563},[528,2395,585],{"class":549},[528,2397,2398],{"class":581},"stats.count",[528,2400,585],{"class":549},[528,2402,624],{"class":549},[528,2404,570],{"class":549},[528,2406,2407],{"class":563}," n",[528,2409,567],{"class":549},[528,2411,1019],{"class":843},[528,2413,1687],{"class":549},[528,2415,671],{"class":563},[528,2417,674],{"class":549},[528,2419,2420],{"class":530,"line":665},[528,2421,557],{"class":556},[528,2423,2424],{"class":530,"line":1208},[528,2425,1925],{"class":549},[712,2427,2428,2435,2444],{},[715,2429,2430,2431,2434],{},"Keys are dotted paths, and ",[488,2432,2433],{},"{n}"," fills a parameter. A missing key shows English, then the key.",[715,2436,2437,2438,2441,2442,508],{},"A language switch calls ",[488,2439,2440],{},"update(ctx)"," with the new ",[488,2443,1458],{},[715,2445,2446,2447,2449,2450,508],{},"A server ",[488,2448,1446],{}," gets the language as ",[488,2451,1458],{},[510,2453,2455],{"id":2454},"admin-path","Admin path",[484,2457,2458,2459,2461,2462,2465,2466,567],{},"The admin runs at ",[488,2460,490],{},". To serve it somewhere else, like ",[488,2463,2464],{},"\u002Fcms",", set ",[488,2467,2468],{},"admin.path",[518,2470,2472],{"className":520,"code":2471,"filename":522,"language":523,"meta":524,"style":524},"export default defineCms({\n  \u002F\u002F ...\n  admin: { path: \"\u002Fcms\" },\n});\n",[488,2473,2474,2486,2490,2511],{"__ignoreMap":524},[528,2475,2476,2478,2480,2482,2484],{"class":530,"line":531},[528,2477,535],{"class":534},[528,2479,538],{"class":534},[528,2481,542],{"class":541},[528,2483,546],{"class":545},[528,2485,550],{"class":549},[528,2487,2488],{"class":530,"line":553},[528,2489,557],{"class":556},[528,2491,2492,2494,2496,2498,2501,2503,2505,2507,2509],{"class":530,"line":560},[528,2493,594],{"class":563},[528,2495,567],{"class":549},[528,2497,570],{"class":549},[528,2499,2500],{"class":563}," path",[528,2502,567],{"class":549},[528,2504,578],{"class":549},[528,2506,2464],{"class":581},[528,2508,585],{"class":549},[528,2510,588],{"class":549},[528,2512,2513,2515,2517],{"class":530,"line":591},[528,2514,668],{"class":549},[528,2516,671],{"class":545},[528,2518,674],{"class":549},[2520,2521,2522,2523,1063,2526,2529,2530,2533,2534,508],"warning",{},"The path uses letters, digits, ",[488,2524,2525],{},"-",[488,2527,2528],{},"_",". It MUST NOT be ",[488,2531,2532],{},"\u002F"," or sit under ",[488,2535,2536],{},"\u002F_tenon",[712,2538,2539,2545,2555],{},[715,2540,2541,2542,2544],{},"Invite links, ",[488,2543,475],{}," and the admin bar point to the new path.",[715,2546,2547,2550,2551,2554],{},[488,2548,2549],{},"path"," MUST be a string or an environment variable, like ",[488,2552,2553],{},"process.env.ADMIN_PATH ?? \"\u002Fcms\"",". The build reads it from the file without running it, so a change needs a rebuild.",[715,2556,2557,2558,2560],{},"The HTTP API stays at ",[488,2559,2536],{},", wherever the admin is.",[2562,2563,2565,2569,2572],"tabs",{"sync":2564},"framework",[2566,2567,2568],"tabs-item",{"label":364},"The integration reads the path. Restart the dev server.",[2566,2570,2571],{"label":368},"The module reads the path. Restart the dev server.",[2566,2573,2574,2577,2812],{"label":372},[484,2575,2576],{},"TanStack Start serves the admin from a route file, so it needs two more changes:",[2578,2579,2580,2756],"ol",{},[715,2581,2582,2583,2586,2587,2590,2591],{},"Rename ",[488,2584,2585],{},"src\u002Froutes\u002Fadmin.$.ts"," to ",[488,2588,2589],{},"src\u002Froutes\u002Fcms.$.ts",", and change the path in it:",[518,2592,2594],{"className":520,"code":2593,"filename":2589,"language":523,"meta":524,"style":524},"import { createFileRoute } from \"@tanstack\u002Freact-router\";\nimport html from \"#tenon\u002Fadmin-html\";\n\nexport const Route = createFileRoute(\"\u002Fcms\u002F$\")({\n  server: {\n    handlers: {\n      GET: () => new Response(html, { headers: { \"content-type\": \"text\u002Fhtml; charset=utf-8\" } }),\n    },\n  },\n});\n",[488,2595,2596,2618,2636,2640,2667,2676,2685,2740,2744,2748],{"__ignoreMap":524},[528,2597,2598,2600,2602,2605,2607,2609,2611,2614,2616],{"class":530,"line":531},[528,2599,1671],{"class":534},[528,2601,570],{"class":549},[528,2603,2604],{"class":545}," createFileRoute",[528,2606,1687],{"class":549},[528,2608,1690],{"class":534},[528,2610,578],{"class":549},[528,2612,2613],{"class":581},"@tanstack\u002Freact-router",[528,2615,585],{"class":549},[528,2617,674],{"class":549},[528,2619,2620,2622,2625,2627,2629,2632,2634],{"class":530,"line":553},[528,2621,1671],{"class":534},[528,2623,2624],{"class":545}," html ",[528,2626,2271],{"class":534},[528,2628,578],{"class":549},[528,2630,2631],{"class":581},"#tenon\u002Fadmin-html",[528,2633,585],{"class":549},[528,2635,674],{"class":549},[528,2637,2638],{"class":530,"line":560},[528,2639,1705],{"emptyLinePlaceholder":1704},[528,2641,2642,2644,2646,2649,2651,2653,2655,2657,2660,2662,2665],{"class":530,"line":591},[528,2643,535],{"class":534},[528,2645,769],{"class":768},[528,2647,2648],{"class":545}," Route ",[528,2650,775],{"class":549},[528,2652,2604],{"class":541},[528,2654,546],{"class":545},[528,2656,585],{"class":549},[528,2658,2659],{"class":581},"\u002Fcms\u002F$",[528,2661,585],{"class":549},[528,2663,2664],{"class":545},")(",[528,2666,550],{"class":549},[528,2668,2669,2672,2674],{"class":530,"line":602},[528,2670,2671],{"class":563},"  server",[528,2673,567],{"class":549},[528,2675,599],{"class":549},[528,2677,2678,2681,2683],{"class":530,"line":641},[528,2679,2680],{"class":563},"    handlers",[528,2682,567],{"class":549},[528,2684,599],{"class":549},[528,2686,2687,2690,2692,2694,2696,2699,2702,2705,2707,2709,2712,2714,2716,2718,2721,2723,2725,2727,2730,2732,2734,2736,2738],{"class":530,"line":659},[528,2688,2689],{"class":541},"      GET",[528,2691,567],{"class":549},[528,2693,1719],{"class":549},[528,2695,1722],{"class":768},[528,2697,2698],{"class":549}," new",[528,2700,2701],{"class":541}," Response",[528,2703,2704],{"class":545},"(html",[528,2706,624],{"class":549},[528,2708,570],{"class":549},[528,2710,2711],{"class":563}," headers",[528,2713,567],{"class":549},[528,2715,570],{"class":549},[528,2717,578],{"class":549},[528,2719,2720],{"class":563},"content-type",[528,2722,585],{"class":549},[528,2724,567],{"class":549},[528,2726,578],{"class":549},[528,2728,2729],{"class":581},"text\u002Fhtml; charset=utf-8",[528,2731,585],{"class":549},[528,2733,1687],{"class":549},[528,2735,1687],{"class":549},[528,2737,671],{"class":545},[528,2739,656],{"class":549},[528,2741,2742],{"class":530,"line":665},[528,2743,1271],{"class":549},[528,2745,2746],{"class":530,"line":1208},[528,2747,662],{"class":549},[528,2749,2750,2752,2754],{"class":530,"line":1225},[528,2751,668],{"class":549},[528,2753,671],{"class":545},[528,2755,674],{"class":549},[715,2757,2758,2759,2762,2763],{},"Pass the path to ",[488,2760,2761],{},"preview()"," in the root route, so the admin bar links to it:",[518,2764,2769],{"className":2765,"code":2766,"filename":2767,"language":2768,"meta":524,"style":524},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","useEffect(() => preview({ admin: \"\u002Fcms\" }), []);\n","src\u002Froutes\u002F__root.tsx","tsx",[488,2770,2771],{"__ignoreMap":524},[528,2772,2773,2776,2778,2781,2783,2786,2788,2790,2793,2795,2797,2799,2801,2803,2805,2807,2810],{"class":530,"line":531},[528,2774,2775],{"class":541},"useEffect",[528,2777,546],{"class":545},[528,2779,2780],{"class":549},"()",[528,2782,1722],{"class":768},[528,2784,2785],{"class":541}," preview",[528,2787,546],{"class":545},[528,2789,2355],{"class":549},[528,2791,2792],{"class":563}," admin",[528,2794,567],{"class":549},[528,2796,578],{"class":549},[528,2798,2464],{"class":581},[528,2800,585],{"class":549},[528,2802,1687],{"class":549},[528,2804,671],{"class":545},[528,2806,624],{"class":549},[528,2808,2809],{"class":545}," [])",[528,2811,674],{"class":549},[484,2813,2814],{},"Then restart the dev server.",[944,2816,2818],{"id":2817},"without-the-admin","Without the admin",[484,2820,2821,2824],{},[488,2822,2823],{},"admin: false"," ships no admin. Use it when editors work somewhere else and your site only reads content.",[712,2826,2827,2833,2839,2848],{},[715,2828,2829,2830,2832],{},"The HTTP API under ",[488,2831,2536],{}," works as before.",[715,2834,2835,2836,2838],{},"The admin bar, custom fields, pages, actions and ",[488,2837,475],{}," are gone.",[715,2840,2841,2844,2845,2847],{},[488,2842,2843],{},"cms.users.invite()"," needs a ",[488,2846,1462],{},", because there is no admin page to link to.",[715,2849,2850,2851,2854],{},"In TanStack Start, remove ",[488,2852,2853],{},"tenonAdmin()"," and the admin route.",[510,2856,2858],{"id":2857},"related-resources","Related resources",[712,2860,2861,2866,2871,2884],{},[715,2862,2863,2865],{},[501,2864,503],{"href":224},": your own inputs, and how browser code reaches the admin.",[715,2867,2868,2870],{},[501,2869,507],{"href":228},": your own views and server buttons.",[715,2872,2873,939,2876,702,2878,1063,2881,2883],{},[501,2874,2875],{"href":42},"Collections and globals",[488,2877,1419],{},[488,2879,2880],{},"description",[488,2882,754],{}," on each entry.",[715,2885,2886,2889,2890,2892],{},[501,2887,2888],{"href":193},"Live preview",": the visual editor that ",[901,2891,1081],{}," opens.",[1856,2894,2895],{},"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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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 .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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}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 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":524,"searchDepth":553,"depth":553,"links":2897},[2898,2899,2902,2907,2910,2913],{"id":512,"depth":553,"text":513},{"id":743,"depth":553,"text":744,"children":2900},[2901],{"id":946,"depth":560,"text":947},{"id":1074,"depth":553,"text":1075,"children":2903},[2904,2905,2906],{"id":1332,"depth":560,"text":1333},{"id":1440,"depth":560,"text":1441},{"id":1638,"depth":560,"text":1639},{"id":2140,"depth":553,"text":2141,"children":2908},[2909],{"id":2207,"depth":560,"text":2208},{"id":2454,"depth":553,"text":2455,"children":2911},[2912],{"id":2817,"depth":560,"text":2818},{"id":2857,"depth":553,"text":2858},"Brand the admin, arrange its navigation and set up the admin bar.","md",null,{},{"title":219,"description":2914},"rOxEO4su2BZi9dvd4hBaTJIMoMH4_unKfQh1BwJP9dI",[2921,2923],{"title":50,"path":214,"stem":215,"description":2922,"children":-1},"Change how the admin looks, and add your own inputs, pages and features.",{"title":223,"path":224,"stem":225,"description":2924,"children":-1},"Your own input for a field, in any UI library.",1795884684507]