🏗️
Flezr Docs
  • Flezr
  • Create Website
    • Getting Started
      • Dashboard
      • Studio
  • Building your App
    • Starting a project from a Built-in Template
    • Building Blocks
    • Connecting Data Source: Google Sheets/Supabase
    • Creating Static Pages
    • Customising the Sections and Page Elements
    • Making Responsive Design
    • Creating and Customizing Dynamic Cards
      • Configure data source
      • Customizing the Dynamic Card section
        • Configuring & customizing card headings
        • Customizing the Number of Cards per Row and Style
      • Customizing the Design of an Individual Card
      • Adding and Customizing Dynamic Card Elements
      • Adding Prefix/Suffix Dynamically to the Card Data
      • Adding Tags and Filters
    • Concept of Dynamic Pages and Variables In Flezr
      • Creating the Template for a Dynamic Page
      • Adding Variables to Page Elements
  • Site Settings
    • External JavaScript & External CSS
    • SEO
  • Integrations
    • Adding password protected content/membership
    • Email Integrations
  • Publishing your Website
  • How To
    • Add Custom Domain
    • Set Ids for Sections and link on the same page
    • Enable Search for Cards
    • Unpublish a page - Set Page Visibility
    • Move Sections Up/Down in the same page
    • Enable ‘Search as you type’ for Cards
    • Enable HTML content in Cards
    • Preserve White-spaces and Line breaks from Google Sheets to display in Cards
    • Configure Page Title, Description, FavIcon for each page
    • Use other fonts from Google Fonts
    • Add Opacity and Background Color for Header Section
    • Add Javascript to Individual Pages
    • Configure Number of Cards to Display
    • Change the display order of card elements based on device type
    • Embed Pages and Sections on External Websites
    • Set the link to an entire card instead of individual elements
    • Duplicate projects
    • Copy sections between pages
    • Create a Sitemap file for your website
    • Use Google Drive images for cards
    • Build Websites with Supabase Data
    • Add Robots.txt
    • Add Head Tags
    • Use Custom Fonts
    • Add Manifest file
    • Add Ads.txt file
    • Add Service Worker
    • Password protect the website
  • FAQ
    • Do you cache content/data?
    • Is there a white-label option for Flezr?
    • Is Flezr a tool for Programmatic SEO?
    • Can I add membership to the site using tools like Memberspace, Outseta etc?
    • Where do I host and deploy my app?
    • Are the sites built with Flezr responsive for mobiles and tablets?
    • What are the supported data sources to build webapps?
    • Can I embed an external script on the site?
  • ADVANCED TOPICS
    • Assign color codes from Google Sheets to Card Elements
  • Legal
    • Brand Assets
    • Privacy Policy
Powered by GitBook
On this page

Was this helpful?

  1. Building your App
  2. Concept of Dynamic Pages and Variables In Flezr

Adding Variables to Page Elements

PreviousCreating the Template for a Dynamic PageNextSite Settings

Last updated 1 year ago

Was this helpful?

Flezr lets you create multiple variables and lets you map each variable to a specific column in your connected Google Sheet. You can then use these custom variables in every element of your dynamic page - Whether it's the background image, the header, featured text, headings, buttons, footers, or cards etc.

As an example, let's add variables to our template for a dynamic page. We want our dynamically generated page to show the details of a property, depending upon which property was selected from the main property tracker listing page.

  1. Create the template for a dynamic page as described in Creating the Template for a Dynamic Page

  2. Now, open this page inside Studio just like you edit a normal static page

  3. Add any section, for example header, image or a text section.

  4. Adding variables is super simple - Just place any name of your choice enclosed inside {{ }} - For example: {{Property Price}} or {{Property Status}} or {{ Property Image}}. This an be ANY name.

  5. Use this variable name in any element on your dynamic page. For example, here is our 'Property Detail' page showing the use of variables. The red rectangle is a text section and we have added the variable name in its settings on the right panel as shown in the arrow.

  1. Similarly, add other variables to other sections:

  1. Next, map these variables to the columns in your Google Sheet. Open the 'Page Panel' from the main Studio. Open the template of your dynamic page. All the variables that you've created will automatically appear here at the bottom.

  1. For each variable, select the corresponding column name from which you want it to pull data. Press 'Update Page' button.

  2. Press 'Save' in the top menu in Studio to save the changes.

  3. Now your Dynamic Page is READY. Test your Dynamic Pages based on your slug URL path and the mapped data column that you configured for the slug.

  4. If you make any changes to the sheet, make sure to do a 'Data Sync' from the top-right corner menu and test the changes.