DocsFQL syntax reference
On this page

Access and navigation attributes

Look up page gates, provider sign-in and navigation directives.

Before you begin: HTML attributes reference.

Access and navigation attributes

AttributePurpose
f-access="guest|auth|admin|*"Gates the current page when used on <body>. Frontbacked handles redirects before bootstrapping.
f-page-access="guest|auth|admin|*"Alias for f-access.
f-redirect-to="/path"Redirect target used with f-access.
f-redirect="/path"Alias for f-redirect-to.
f-auth-page="signin|signup"Marks a custom sign-in or sign-up page so Frontbacked can make it unavailable when the site admin turns off that account action. Standard auth route names are recognized automatically.
f-auth-link="signin|signup"Marks a link to a custom auth route. Frontbacked hides it when the matching account action is unavailable.
f-auth-provider="google"Starts a site provider sign-in flow when clicked. Use provider ids available for the site, such as google or github. Frontbacked keeps the element hidden until the provider is supported and enabled.
f-google-authBackwards-compatible alias for f-auth-provider="google".
f-auth-return-to="/path"Local path to open after provider sign-in completes.
f-google-auth-return-to="/path"Backwards-compatible alias for f-auth-return-to.
f-auth-mode="signin|signup"Optional provider sign-in mode for custom routes that cannot be inferred from the page class or URL.
f-auth-labelLets Frontbacked fill the button label from the provider name when the element has no text.
f-loaderMarks an element that should be shown while Frontbacked is loading another page through SPA navigation. It is hidden automatically when idle.
f-nav="reload"Opts out of SPA navigation. Put it on one link, an ancestor, or <body> to make matching links use normal browser reloads.
f-min-load-time="1000"Keeps SPA navigation in the loading state for at least the given milliseconds. Put it on a link, an ancestor, or <body> to preview/test loader UI.
f-insert="/components/header.html"Imports a same-theme HTML fragment and inserts it inside the element before the page is served.
f-replace="/components/footer.html"Imports a same-theme HTML fragment and replaces the host element before the page is served.
f-skeleton-count="3"Sets how many placeholder rows a list renders while loading. Values are capped at 12.
f-no-skeletonDisables Frontbacked skeleton placeholders for that element or list.

Continue with Video attributes reference.