Complete a record schema
Combine typed fields into a complete article schema.
Before you begin: Generate and protect field values.
Site Settings and Secret Keys
Store business settings in a protected post schema and provide an editing form in your theme's admin pages. Use a fixed unique key for one site-wide record, restrict access with FRL permissions, and provide defaults before the first save. See Theme admin pages.
Keep credentials and configurable integration hosts in $secret. Declare every key immediately after version 2;, before other rules. Each key needs a display name and a description explaining the value to provide and what it enables. Undeclared references prevent the theme version from being processed. Site owners fill the generated Manage Secrets form, and each saved key works across all versions of their site:
Rule excerpt: add this to a complete FRL rule before running it. Try a complete example →
A Complete Schema Example
Rule input (JSON)
Use a complete version 2 rule file. Select a post with “postType” and “action”, or an “endpoint” by name. Saved data, jobs, payments and email need the local server. Dedupe replay protection also needs a site.
Check complete rules or run schemas, permissions, hooks and calculations against the input above. Add excerpts to a complete rule before running.
Named declarations follow the FRL naming rules. The system, system_…, and system.… names are reserved for Frontbacked, case-insensitively. Ordinary data fields are unaffected.