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
Come up with a name and URL path. In the second configuration step, click on
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.
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.
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
Come up with a name for your new data model and add properties to it.
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.
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
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
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.