Display text and attributes
Render values and add admin and support controls.
FQL renders state and data into the DOM through f-* attributes. Bindings such as f-text, f-show, f-list, and f-attr-* activate automatically; f="true" is optional and remains supported.
Use f="false" to leave an element's bindings inactive. This applies only to that element: children with their own directives still work. Ordinary HTML needs no marker. Editor labels and type declarations alone do not activate rendering. Page access declarations and source imports remain part of page configuration; an element opt-out does not replace access rules.
When $state.title changes, the element text updates.
Text Binding
Use f-text to set textContent.
If the expression resolves to null or undefined, the text becomes empty.
Attribute Binding
Use f-attr-* to set an attribute.
The part after f-attr- becomes the real attribute name.
Examples:
| FQL attribute | Real attribute |
|---|---|
f-attr-href | href |
f-attr-src | src |
f-attr-alt | alt |
f-attr-aria-checked | aria-checked |
f-attr-data-state | data-state |
If the expression resolves to null or undefined, Frontbacked removes the attribute.
Admin Controls
Use f-admin-link when a theme needs to link admins to the site's deeper Frontbacked admin area. Frontbacked provides the admin root through $siteInfo; when none is provided, the link falls back to /fb-admin. Anchor elements default to opening in a new tab.
Use f-edit-mode-enable, f-edit-mode-disable, or f-edit-mode-toggle for page edit mode controls. The first enable in a browser shows Frontbacked's warning modal and stores the admin's acceptance in that browser.
Support Launcher
Use f-support-launcher to render Frontbacked's reusable floating support button and widget. It reads visible WhatsApp and Telegram contacts from $siteInfo, shows contact choices when those channels exist, and falls back to the native site chat.
The native chat header includes a fullscreen button so visitors can expand their conversation and restore its original size. Press Escape to leave fullscreen. Drafts and selected attachments stay in place while switching sizes.
Chat automatically prepares oversized JPEG, PNG, and WebP images to fit the site’s attachment limit when the browser supports it. Images already within the limit stay unchanged. Transparency and camera orientation are preserved, and animated images are never flattened. If an image cannot be reduced enough or the browser cannot process it, visitors are prompted to choose a smaller file.
Use f-support-toggle only when a custom UI should toggle the native in-page chat directly instead of showing the launcher contact choices.
Custom links or buttons can open, close, or toggle the same launcher:
Continue with Render repeated content.