Skip to main content

Developing an Application



Creating Screen Templates

Create new Screen Templates and make them available in your environment by adding them to a Custom Screen Templates Module.

Creating Custom Screen Templates Module

To be able to add new Screen Templates to your environment, you first need at least one Custom Screen Templates Module. Follow these steps to create it.

  1. Go to the Forge repository and download Custom Screen Templates Web or Custom Screen Templates Mobile.
  2. Confirm the opening by clicking Open a clone.
  3. This is an optional, but a highly recommended step. Go to the Interface tab, click the module title in the tree and edit the Name property to, for example, "MyCustomScreenTemplatesWeb" or "MyCustomScreenTemplatesMobile". This makes the names of the cloned modules more meaningful.
  4. Publish the module. The module is now available in Applications > Independent Modules.

Creating new Screen Templates

Follow these steps to create new Screen Templates.

  1. Go to the Independent Modules and open the Custom Screen Templates Module where you want to add new Screen Templates. If you don't have such module, follow the instructions for creating it and then return to this section.
  2. Go to the Interface tab and in the UI Flows folder right-click the ScreenTemplates flow. Select Add Web Screen (or Add Mobile Screen) from the context menu.
  3. In the New Screen window select either a Screen Template with some content to bootstrap your template or choose Empty. Click Create Screen. A new Screen shows, with a message "You are editing a Screen Template" at the top.
  4. If you selected Empty in the previous step, go to the UI Flows folder, expand the Common folder, drag the Layout block and drop it to the Screen.
  5. Set the preview image and enter the metadata for the Screen Template.
  6. Publish the module. Your Screen Template is now available to all developers in the environment.

Editing Screen Templates

Edit your Screen Templates in your Custom Screen Templates Module. Republish the module to update the Screen Templates in the environment. Keep in mind that editing an existing Screen Template does not affect Screens that are already created from it.

Creating Screen Templates with custom Theme

You can use a different Theme in each Custom Screen Templates Module. Screen Templates inherit the styles from the Theme.

  1. Follow the steps for creating a Custom Screen Templates Module.
  2. Edit the module so it uses your Theme. The Custom Screen Templates Modules from Forge use BaseTheme, the default Theme from OutSystems UI.
  3. Follow the steps for creating new Screen Templates.

OutSystems provides the following Forge components to assist you in creating your own style guide and Screen Templates:

Articles in this Section

  • How Screen Templates work
    Learn how Screen Templates work.
  • Guidelines for creating Screen Templates
    Follow these guidelines to create stable and useful Screen Templates, with an excellent UX.
  • Metadata reference
    Enter the metadata when creating Screen Templates, to enable the developers to choose the best Screen Template for the Screen they are creating.
  • Sample data
    Screen Templates contain sample data, which you can manage in a back-office. You can view, reset and add your own data.
  • Was this article helpful?