🟩Pages
In this tutorial we cover everything that you need to know about pages.
Last updated
In this tutorial we cover everything that you need to know about pages.
Last updated
In this tutorial you are going to learn:
What are pages
Creating new pages
Page settings
Deleting pages
So to start with, what are pages and how can you use them inside Dittofi?
Inside of Dittofi, Pages can be used to build either landing pages, multi page websites or high performance web apps.
A page can be thought of as a structured document that makes up the visual design for your app. To customise your page, you can use Dittofi’s page builder to put a collection of customizable elements directly onto your apps page. This collection of elements makes up the visual design of your app.
The visual design transforms into HTML, CSS and JavaScript code and all of this code is automatically deployed at a Dittofi branded URL. You can link a custom URL whenever you’re ready to do so.
To create a page, go to the Page Builder tab inside of Dittofi. Click on the add pages button at the top of the page to get this slide out panel.
Notice that if you’re starting from a template, as I am here, this slide out will already have pages pre-built for your app. Next click the “Add page” button at the bottom of your app. This brings up a popup, which has a number of modern, customizable templates that you use as pages for your app. Each template can be entirely customised however, if you’d rather develop something completely from scratch, you can choose the blank option.
Lastly, Click “create page” in order to create the page.
Next, click on your new page, give it a name, a description, update the slug to modify the URL and click “Save”.
You can now add elements to your page by clicking on the add elements button here and then using the drag and drop, to move elements around your page. For example, here I am going to add a container element and then a form element, and add some space at the top of my form like so.
After I’ve done this I am going to click the “Build code” button here. This will build my apps code and also deploy this code directly into a live, test, environment for your app.
When you press preview, to see your page, you need to update the URL to include the slug that you set when you created your new page.
Back inside Dittofi, you can see that we have created a new page. If I add more elements to this page, I can then re-build my code and once my code has finished building, I can go over to my live app again and hit the refresh button to see the updated changes.
We saw in the last part that it was possible to give your page a name, a description and to set the slug for our page. However, there are some other page settings that we have not seen yet.
In order to re-open your page settings, go to the Add Pages button again, find the page whose settings you want to update and click on this downward facing arrow and edit settings, to edit the page setting.
Inside here you can update the name, description and the slug. Update your SEO settings, Import custom code snippets into your header and body tags, import custom CSS frameworks such as bootstrap & tailwind CSS and set page variables.
Press save in order to apply any of the updates that you make to the settings.
To delete a page, expand the pages panel, search for the page that you want to delete and then click on the downward facing arrow that is next to the page and click “Delete Page”.
WHAT NEXT?
Now you know what pages are, the best next step is to go through another one of the major front-end components. There are videos like this for each of the main components. The main components include:
Pages - which you now, already know about,
Variables
Elements
Front-End actions & events