When you create a Blocks app, it's important to determine what happens when a site-builder installs your app. How do you want your app and widgets to be added to the site? For example: should all widgets be visible in a site's Add panel? Should any of them be added automatically to a site? What will be the default preset?
Notes:
To access the installation settings:
There are four options to choose from for adding each of your widgets to a Wix site.
This is the default setting for Installation Settings. With this option, your widget is:
In this example, the app has two widgets, both are defined as Not added automatically, and therefore seen in the Add+ panel.
This option means that your widget is automatically added to the homepage of a site, without having to drag and drop it from the Add + panel.
You can also set the default preset for your widget and define a different default preset for mobile.
Use this option when you want your widget to appear on a different Site Page Extension of your app. A site page extension means that whenever your app is installed of a site, another page comes with it.
To add the widget to a page extension:
Note: The Page ID value becomes part of the URL for the new page that this widget is installed on. This is so it can be used in code as a unique URL. You'll use this if you want to navigate to the page from your app.
Use this option when you want your widget to appear as a Lightbox.
To add the widget as a Lightbox:
Note: The Page ID value becomes part of the URL for the lightbox this widget is installed on. This is so it can be used in code as a unique URL. You'll use this if you want to navigate to the lightbox from your app.
openLightbox() To open the lightbox from the app code, use the wix-application openLightbox() function
The preset visibility section lets you define what widgets and presets appear in a site-builder's Add+ and Design panels.
When a site builder installs your app on a site, you might want to control the widgets that they see in their My Widgets list in the Add + panel. For example, when you have inner widgets that are already included within another widget. This option applies only if your widget is not added automatically to a page.
Similarly, you might also want only some of the design presets to appear, while others shouldn't appear there. This option in all cases, meaning also when your widget is added to a page or a lightbox.
The Design panel is where a site builder can choose between the various presets of a widget. This option lets you determine which presets should appear in the design panel.
When site builders browse through the design presets of your widget in their Add + or Design panels, they see a thumbnail image of the presets. Click Preset Settings to choose whether to use an auto-generated image or create your own. Make sure follow our UX guidelines for the thumbnail images.
Set a widget as essential to your app if it is a main widget and your app has no meaning without it.
Note that you can set a widget as essential only if you add it to a page extension - not if you add it automatically, to the homepage or as a lightbox.
With this toggle on:
Reminder Installation settings only apply for the first install on a site. This means that if your app is already installed on a site, the settings won't be updated unless the site-builder removes and reinstalls the app.