Working with shortcut options

Shortcut solutions while adding authentication profiles, data models and their properties via the page builder.

Updated over a week ago

Sometimes while working on creating a new page, you can face the case when this page requires the data from a not-yet-existing model. Instead of turning back to your data model, you can now use the “new data option” in your page builder.

These kinds of ‘dead-end streets’ have much easier solutions and in this article, we will cover those kinds of shortcuts that enable users to quickly tackle the issues of missing elements: authentication profiles, models, and properties.

Let’s take a look at some real use cases to make it all clear.

Authentication profile for login pages

Let’s assume that you would like to create a new login page. For this one, you definitely need an authentication profile, but if you haven’t created one yet, it’s not a big deal, because you can do it with the configuration wizard while setting the template.

Go to the page builder > Create a new page > Login form with image

Path to Login form with image template

Come up with a name and URL path. In the second configuration step, click on ‘Select an authentication profile’. Whether you have one or not, you will still have the ‘Create profile’ button in the window below.

Create a new profile from a template create menu

Here’s what creating an authentication profile will look like in the page builder overview. For this particular template, the ‘Username / password’ kind of profile will be set by default and all you’d have to do is select the proper data model and its properties.

Creating a new authentication profile

In some cases (like using the Back office template, for example), you will be able to get to setting the authentication profile while selecting the type of page: authenticated or public.

Selecting an authentication profile from a create page menu

Data models for page templates

For the next use case example, we will take the CRUD with a slide-out panel page template. Again, while creating the page with this template at some point, you might realize that the data model you need to use is missing, but we will sort it out in this example.

Go to the page builder > Create a new page > CRUD with a slide-out panel. After selecting the name and type of page and partials, you’ll get to the third configuration page.

Here you need to select a data model. If you can’t see the one you need right now, click the ‘New model’ button to open the configuration wizard.

Creating a new model from a template configuration menu

Come up with a name for your new data model and add properties to it.

Create new model meun

Data models and properties for data components

This use case explains how to tackle the missing data models or properties while adding data components to your page via the page builder.

Let’s assume you have a page and you want to add a data table to it. In the page builder option, scroll down to find the data table component. Drag it onto the page canvas.

Dragging a data-based page component onto the canvas

This action will automatically open the data table configuration wizard where you will be able to either choose one of the existing data models or create a new one by clicking on the ‘New model’ button. Of course, you’ll be able to come up with the properties you need for this model.

A shortcut to create a new model from a data table configuration

In case you have the needed model for this table, but you’re lacking some of the properties, there is an easy solution for that as well. In the columns menu, among already existing properties, you will find the ‘New properties’ button.

Adding new properties to the data table

By clicking it, the quick add properties menu will open to enable you to create the properties you need for this model. Mind that properties set up this way will be created without any specific settings. If you want to change property settings or add validations to your model, please, go to your data model overview.

Adding quick properties to a new model

Did this answer your question?