Littlebay Templates Documentation
  • Welcome!
  • Quick Links & Tips
    • Littlebay Forum
    • Support Email
    • Built-In Documentation
    • Navigating the Bubble Editor
    • Navigating this Documentation
    • List of Bubble Guides
  • Messaging Template
    • Release Notes
      • 05/28/21 Guide on How to Update the Template's Select Conversation Workflow
      • 09/05/20 Guide on How to Update the Template's Video Chat Service
      • 06/14/19 Guide on New Conversation Functionality
    • About this Template
    • Setup Guide
    • Development Guides
      • Built-In Workflow Notes
      • Pages Summary
      • Reusable Elements Summary
      • Passwords
      • Translating Your App
      • Mini Guides
        • How to Remove Group Conversation Functionality
        • How to show the Chat window after clicking "Message" on the Profile Page when a Conversation Exists
      • Pages & Reusable Elements (Organized by Folder)
        • 1. Marketing
          • index
          • landing
          • 404
        • 2. Navigation
        • 3. Logged In
          • account
          • admin
          • change_pass
          • confirm
          • messages
            • Pageload Design
              • 1. Responsive
              • 2. Mobile Pageload
              • 3. New User
              • 4. New Conversation (Parameter)
              • 5. New Conversation w/ User (Parameter)
              • 6. View Conversation (Parameter)
              • 7. Viewing/Editing the Colors of the Message 'Bubbles'
            • Built-In Functionality
              • 1. Start a Conversation
              • 2. View/Select a Conversation
              • 3. Search for a Conversation
              • 4. Delete or Leave a Conversation
              • 5. View More Messages in a Conversation
              • 6. View Unread Messages
              • 7. See Who's Typing
              • 8. See Who's Seen Each Message
              • 9. Send Images in a Message
              • 10. Send Files in a Message
              • 11. Send a GIPHY in a Message
              • 12. Send a YouTube Video in a Message
              • 13. Start a Video Chat
          • onboard
          • profile
            • 1. Follow/Unfollow the User
            • 2. Send a Message to the User
            • 3. View the User's Followers
            • 4. View Who the User is Following
            • 5. Edit Profile
          • reset_pw
        • 4. Legal
          • privacy_policy
          • terms
    • Design Resources
      • Design Overview
      • Design Guide
      • UI Components
      • Page Templates
  • Responsive Base Template
    • Release Notes
    • About this Template
    • Setup Guide
    • Development Guides
      • Built-In Workflow Notes
      • Pages Summary
      • Reusable Elements Summary
      • Passwords
      • Translating Your App
      • Pages & Reusable Elements (Organized by Folder)
        • 1. Marketing
          • index
          • landing
          • 404
        • 2. Navigation
        • 3. Logged In
          • account
          • admin
          • change_pass
          • confirm
          • onboard
          • profile
            • 1. Follow/Unfollow the User
            • 2. View the User's Followers
            • 3. View Who the User is Following
            • 4. Edit Profile
          • reset_pw
        • 4. Legal
          • privacy_policy
          • terms
    • Design Resources
      • Design Overview
      • Design Guide
      • UI Components
      • Page Templates
Powered by GitBook
On this page
  • Admin Page Elements Are Not Visible when the Editor is First Loaded
  • How to Make Admin Page Elements Visible in the Editor
  • Why does this page exist?
  • Who can access this page?
  • How to designate admin Users before pushing your app to live:
  • What does this page allow my Users to do?
  • Where do my Users click in order to go to this page?
  • When are my Users taken to this page?
  • What should I keep in mind about this page’s workflows?
  • What should I keep in mind about this page’s design?
  1. Responsive Base Template
  2. Development Guides
  3. Pages & Reusable Elements (Organized by Folder)
  4. 3. Logged In

admin

PreviousaccountNextchange_pass

Last updated 6 years ago

Admin Page Elements Are Not Visible when the Editor is First Loaded

When you navigate to the admin page in the editor, you won't see any of the admin page elements at first. This is because it's best for the admin page components to be hidden by default (for security reasons), and to only become visible when an Admin User is viewing this page.

The admin page elements are only shown to admin User because of the conditional on the Group Main Page element (shown below). This conditional 'tells Bubble' that this group should only become visible when the Current User's "Admin" field's value (type: yes/no, list: no) is yes:

How to Make Admin Page Elements Visible in the Editor

  1. To make the Admin page elements visible in the editor, click the caret icon to expand the Elements tree:

2. Then, click the Group (Main Page) element, and expand the group elements in the tree by clicking the + icons:

3. Click the Group Graph of Users Container element to make it visible in the editor:

4. This will ensure that all of the elements within the Group (Main Page) element are visible:

Desktop (Preview)

Mobile

Why does this page exist?

In general, creating an admin page in a Bubble app allows you to modify your app's live database. In development mode, we are able to modify data through the App Data tab, but this is not possible in live mode.

Who can access this page?

Only Users that have an "admin" field value (type: yes/no, list: no) of yes are allowed to access this page. All other Users will not be shown anything on this page, and will be re-directed immediately if they navigate to this page.

How to designate admin Users before pushing your app to live:

The easiest way to designate your account as an admin User, is to set your personal development User account's "Admin" field value (type: yes/no, list: no) to true in the editor's App Data tab:

After clicking the Save button to modify your User account database entry, you will be able to view the Admin page when previewing your app in development mode.

To ensure that your account will also be designated as an admin User in your app's live database, you will want to "copy your app's development database to live" right after you first push your app's changes to live.

You can copy the app's development database to live by going to the App Data tab in the editor, and selecting Copy and Restore Database:

You will be shown the popup below which warns you that copying data is a dangerous operation because it can either remove's your app's development data (and replace it with the live database entries) or vice versa. In this situation, your app's live database would be empty, and copying the development data to live would not cause any issues (it will just make sure you can login to your live database with the accounts you created in the development database). To make this change, click the Copy Development Data Into the Live Database:

Bubble will ask to confirm this action and then your development accounts will be available to use in the live version of your app. From there, your User account will be shown the "Admin" links in live mode, and have all of the admin actions available to your account.

What does this page allow my Users to do?

Since it's not possible to edit App data through the App data tab for your app's live database entries, this admin page allows you to:

  1. View User signups over time in a graph

  2. View all of your app's Users and their profile information

  3. Edit Users profile information

  4. Designate other Users as fellow Admin Users

  5. Delete User accounts

Where do my Users click in order to go to this page?

An "Admin" link is automatically shown in the desktop navigation, mobile menu (list), and header_navigation reusable elements, as long as the Current User's "admin" field value (type: yes/no, list: no) is yes.

When are my Users taken to this page?

Users are never automatically taken to this page.

What should I keep in mind about this page’s workflows?

Most of the admin page's workflows only show or hide elements. The admin actions that actually designate other Users as admin and delete User accounts (as long as the Current User is an admin User) are within the admin_edit_user reusable element.

What should I keep in mind about this page’s design?

The admin page shows the desktop navigation, mobile header, and mobile submenu reusable elements conditionally, depending on the current page width.

Here you can see that the desktop navigation is shown when the current page width is greater than 887 pixels. Once the current page width is less than 887 pixels, the desktop navigation element becomes hidden (using a responsive, hiding rule) and the mobile header and mobile submenu reusable elements are shown, so the Current User can more easily navigate throughout the application.

When the Current User clicks the hamburger menu icon within the mobile submenu reusable element, the admin page's FG - Mobile Menu and FG - Fade Overlay elements are shown:

In order for the FG - Mobile Menu and FG - Fade Overlay elements to display correctly, they should always be the same height as the page.