Note: These guides are based on a Wix Editor site. You can adapt the procedures for a Wix Studio site by using the equivalent Wix Studio features.
Let's begin by getting familiar with the Velo development environment. The environment contains the tools you need to develop a Velo app.
Before beginning with Velo, you need to turn Dev Mode on. To do so, go to Dev Mode in the Editor's top bar and click Turn on Dev Mode in the popup box.
Once you enable Velo, you see some additional panels appear in the Editor. Let's take a look at what these panels are and what you do with them.
The Code Panel appears at the bottom of the page. This is where you do most of your work in Velo. You write all the code for your site, whether it be frontend or backend code, in this panel.
The Code Panel is a fully-functional code editor that's packed with features, such as autocomplete and error checking, to help you write Velo code as quickly and efficiently as possible.
In the Code Panel, you can have multiple code files open in tabs. The left-most tab is always the page code for the current page showing in the Editor. As you change pages in the Editor, the code in this tab will change accordingly. You cannot close this tab.
You can open additional tabs that can contain site code, public code, and backend code.
The Properties & Events Panel is docked to the right side of the Code Panel when shown. It contains information about the page element currently selected on the page.
The Properties & Events Panel contains the following information about the selected element:
The Velo Sidebar is where you navigate to all the code files and database collections in your site. You can also use the sidebar to access production tools.
The Velo Sidebar contains the following tabs, described in detail below:
The Page Code tab lists all of your site's pages as well as your site's global code. You can use the Page Code tab to navigate to your site's pages in the Editor and open their corresponding code files.
The Page Code tab includes all of the following that are relevant to your site:
The Code Files tab contains all of your site's non-page code files.
The Code Files tab includes all of the following that are relevant to your site:
The Search Your Code tab contains a search mechanism that allows you to perform a global search on all of your code files. Package code is not searched.
The Databases tab contains all of your site's database collections.
It includes all of the following that are relevant to your site:
The Velo Tools tab allows you to access several production tools that help you increase the security, debug, and roll out your site.
The following production tools are available:
The Velo Help tab allows you to access a number of Velo resources to learn more or get some help.
The following resources are available:
When Velo is enabled, the section of the Editor where you design your page doesn't change much, except for a few minor differences. The main ones that concern us now are the additions to the Tools panel.
Under the Developer Tools section, there are two additional tools when Velo is enabled:
The Properties & Events Panel, which we discussed above.
A Hidden Elements setting, which determines whether elements that are set to be hidden are shown while editing.
Sometimes, while editing your site, you want to see hidden elements so you can design them and place them where you want them to be on the page. Other times, while editing your site, you don't want to see hidden elements because they get in the way of other page elements.
Of course, in preview and on your live site, hidden elements are not shown until you show them with code.
When you preview your site with Velo enabled, the Developer Console shows at the bottom of the screen. The console displays information that is useful for debugging your code, such as errors, logs, and other messages.
You can set exactly which types of messages are displayed in the Developer Console.
The following types of messages can be toggled on or off: