Page editor reference
Configure recovery controls and typed page editor fields.
Before you begin: Attachments and security reference.
Optional upload recovery UI
Use await Frontbacked.uploads.hasPending() to check for remembered pending uploads, await Frontbacked.uploads.showPanel() to show the sticky recovery bar, and await Frontbacked.uploads.showDetails(sessionId?) to open the file details dialog. These views appear only when pending uploads exist. Hiding them removes their feedback subscriptions while uploads continue. Updates use .live without polling.
Use await Frontbacked.uploads.cancel(sessionId) to stop an upload and remove its uploaded files, recovery data, and associated post file data. Cancelling an unfinished replacement preserves the previous attachment. The usual permissions apply. See File uploads for examples and multi-file save behavior.
Page editor field names
f-name="Homepage heading" optionally names an editable field or settings list. Attribute-specific names such as f-name-alt="Image description" override the default for the matching f-attr-alt binding. Use f-name-text for text and f-name-list for lists. Names are literal display metadata; blank or omitted names fall back to generated labels. See Name fields in the page editor for standalone, image, and nested-list examples.
Page editor field types
Use f-type-text and f-type-attr-NAME with string, number, integer, boolean, url, email, or money, or literal JSON such as { "type": "number", "min": 0, "max": 100 }. Declared fields default to required: true; use required: false for optional fields. String limits constrain length; numeric limits constrain value. Without a declaration, fields are text capped at their authored default length; an empty default is uneditable until a type is declared. See Type and validate page editor fields for examples, lists, and save behavior.
For money, decimal-string min and max bounds are checked exactly. The editor saves an amount string with its currency using Frontbacked money values. Authored defaults use the site base currency; saved values retain their currency. See Money in the page editor.
Visitor currencies and prices
Use $.price.moneyResolve().moneyFormat() to display a money field in the active supported shopping currency. Read the effective currency with Frontbacked.getCurrency(), list options with Frontbacked.getSupportedCurrencies(), and save a visitor choice with Frontbacked.setCurrency(code). See Currencies and prices for country detection, saved choices, exact currency prices, conversion, navbar selectors and FRL checkout.
Additional client helpers
| Helper | Use |
|---|---|
Frontbacked.money.getUnits(value, currency?) | Read exact fixed-scale integer units as text. Use the money helpers for arithmetic. |
Frontbacked.editMode.exit() | Leave page editing mode; equivalent to Frontbacked.editMode.disable(). |
Frontbacked.toast({ message, type?, duration? }) | Show a brief message. Use info, success, warning or error; duration is in milliseconds. A string is accepted as the message. |
Frontbacked.image.avatar(source, size?) | Build an avatar image URL from a saved profile image. |
Frontbacked.removeProfilePhoto(options?) | Remove the signed-in user's profile photo and refresh their auth state. |
Frontbacked.billing.startSecureCheckout({ paymentId, methodId }) | Start secure checkout for a selected method on an existing payment. Prefer the built-in payment-options interface for a complete checkout. |
Frontbacked.jobs.failures(id, cursor?) | Read a page of failed job items: items, nextCursor, and hasNextPage. Use the returned cursor to request the next page. |
f-nav-reload-script="true" on a script asks Frontbacked to run it again when navigating to its page. Use it only for page scripts that can safely be initialized again. See Navigation.